TimedObject


Declaration

public class TimedObject : MonoBehaviour

Description

Destroys or deactives an object after a specified amount of time.

Properties

timeoutThe amount of time in seconds before the object is timed out.
timeoutEventThe event that occurs when the object is timed out.
timeoutBehaviorThe behaviour to disable when timed out (only applicable for TimeoutEvent.Disable).
detachChildrenDetaches the children of the object before it is destroyed (only applicable for TimeoutEvent.Destroy).

Methods

TimeoutHandles the object being timed out.