Class RuntimeUtility
An ad-hoc collection of helpers, used by Cinemachine or its editor tools in various places
Inheritance
System.Object
RuntimeUtility
Namespace: Cinemachine
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.Undoc)]
public static class RuntimeUtility
Methods
DestroyObject(UnityEngine.Object)
Convenience to destroy an object, using the appropriate method depending on whether the game is playing
Declaration
public static void DestroyObject(UnityEngine.Object obj)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Object | obj | The object to destroy |