Search Results for

    Show / Hide Table of Contents

    Class Object

    Interface for Engine objects.

    Inheritance
    Object
    Assembly: FlaxEngine.dll
    File: Engine/Core/Object.h
    Syntax
    public class Object

    Constructors

    ~Object()

    Finalizes an instance of the Object class.

    Declaration
    public virtual ~Object()

    Fields

    Flags

    The object flags.

    Declaration
    public ObjectFlags Flags = ObjectFlags::None
    Field Value
    ObjectFlags

    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

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat