Class Object
Interface for Engine objects.
Inheritance
Object
Assembly: FlaxEngine.dll
File: Engine/Core/Object.h
Syntax
public class Object
Constructors
~Object()
Fields
Flags
Methods
DeleteObject(float timeToLive = 0.0f, bool useGameTime=false)
Deletes the object (deferred).
Declaration
public void DeleteObject(float timeToLive = 0.0f, bool useGameTime=false)
Parameters
float
timeToLive
The time to live (in seconds). Use zero to kill it now. |
bool
useGameTime
True if unscaled game time for the object life timeout, otherwise false to use absolute time. |
DeleteObjectNow()
Deletes the object without queueing it to the ObjectsRemovalService.
Declaration
public void DeleteObjectNow()
OnDeleteObject()
Deletes the object. Called by the ObjectsRemovalService. Can be overriden to provide custom logic per object (cleanup, etc.).
Declaration
public virtual void OnDeleteObject()
ToString()
Gets the string representation of this object.
Declaration
public virtual String ToString() const = 0
Returns
String
|