Memory management for temporary ScriptableObject instances created during GLB import Prevents memory leaks by tracking and cleaning up runtime-created ScriptableObjects.
More...
|
| static void | TrackTemporaryScriptableObject (ScriptableObject so) |
| | Tracks a temporary ScriptableObject instance for later cleanup.
|
| |
| static void | CleanupTemporaryAssets () |
| | Cleans up all tracked temporary ScriptableObject instances Should be called after import completes.
|
| |
| static int | GetTrackedCount () |
| | Gets the count of tracked temporary ScriptableObjects.
|
| |
| static void | ClearTrackingWithoutDestroy () |
| | Clears tracking list without destroying objects Use this if objects have been attached to scene hierarchy and should persist.
|
| |
| static void | UntrackScriptableObject (ScriptableObject so) |
| | Removes a specific ScriptableObject from tracking (e.g., if it was saved as an asset)
|
| |
Memory management for temporary ScriptableObject instances created during GLB import Prevents memory leaks by tracking and cleaning up runtime-created ScriptableObjects.