AnimancerToolsWindow.Tool.

AnimancerToolsWindow.

SaveModifiedAsset<T>(string, string, T, Action<T>) Method

Summary

Asks the user where they want to save a modified asset, calls `modify` on it, and saves it.

Syntax

public static bool SaveModifiedAsset<T>(string saveTitle, string saveMessage, T obj, Action<T> modify) 
    where T : Object

Type Parameters

Name Description
T

Parameters

Name Type Description
saveTitle string
saveMessage string
obj T
modify Action<T>

Return Value

Type Description
bool