RuntimeAnimatorController.Destroy(Object obj, number t = 0)
Removes a GameObject, component or asset.
Parameters:
Name | Type | Description |
---|---|---|
obj | Object | The object to destroy. |
t | number | The optional amount of time to delay before destroying the object. |
Usage
---@type Object
local obj;
---@type number
local t;
RuntimeAnimatorController:Destroy(obj, t)