Class RuntimeObjectManager
Utility class designed purely for the resetting of any ScriptableObject
in a Resources directory that derives from RuntimeObject
.
Inheritance
System.Object
RuntimeObjectManager
Namespace: ScriptableFramework
Assembly: cs.temp.dll.dll
Syntax
public static class RuntimeObjectManager
Methods
ClearObjectsOfType<T>()
Clear all assets that are within a Resources directory of a given type T where T derives from RuntimeObject. If you don't want their data to persist between scenes, call this BEFORE scene change.
Declaration
public static void ClearObjectsOfType<T>()
where T : RuntimeObject
Type Parameters
Name | Description |
---|---|
T | The type of resource to be cleared. Must derive from RuntimeData. |
ResetObjectsOfType<T>()
Reset all assets that are within a Resources directory of a given type T where T derives from RuntimeObject. If you don't want their data to persist between scenes, call this BEFORE scene change.
Declaration
public static void ResetObjectsOfType<T>()
where T : RuntimeObject
Type Parameters
Name | Description |
---|---|
T | The type of resource to be reset. Must derive from RuntimeObject. |