ScriptableObjectExtensions¶
Namespace:
SideXP.Core.EditorOnly
Extension functions for ScriptableObject instances.
Methods¶
GetScriptPath(ScriptableObject)¶
Parameters
obj: TheScriptableObjectyou want to get the script path.
ResetToDefaults(ScriptableObject)¶
Reset the given object to its default values. This operation is undoable.
Parameters
obj: The object to reset.
Remarks
Since Unity doesn't provide a utility function to do this, this function will create an asset of the same type, and copy its serialized values to the given object.