Class ObjectExtensions
UnityEngine.Object Based Extension Methods
Inheritance
System.Object
ObjectExtensions
Namespace: GDX
Syntax
[VisualScriptingCompatible((short)2)]
public static class ObjectExtensions
Methods
| Improve this Doc View SourceSafeDestroy(Object, Single)
Destroy a UnityEngine.Object appropriately based on the current state of the Editor/Player.
Declaration
public static void SafeDestroy(this Object targetObject, float delay = 0F)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Object | targetObject | The target UnityEngine.Object to be destroyed. |
System.Single | delay | How long should be waited before the |