Enumeration SceneObjectFlag

The SceneObjectFlag enum represents modifiers that can be applied to a SceneObject.

Constructors

  • Parameters

    • do_not_: undefined
    • construct_: undefined
    • this_: undefined
    • type_: undefined

    Returns SceneObjectFlag

Values

HideInOutliner = 32

Object will not be displayed in the outliner, except when in Debug mode and Outliner debug mode is enabled.

Internal = 8

Provides a hint to external systems that his object is used by engine internals.

IsInternalTemplateRoot = 256

Set on the object that's a root template instance that also contains template internals (e.g. template instance in the template editor or scene object in the Template resource itself).

None = 0

Special case for empty flags check.

NoSaveOrSync = 2

Object will be skipped when saving or synchronizing the scene hierarchy or a template.

Protected = 64

Object is protected and cannot be deleted by the user.

Readonly = 128

Object properties are read-only and cannot be modified by the user.

This does not apply to child-objects.

RuntimePersistent = 4

Object will remain in the scene even after scene clear, unless destroyed directly. Such objects cannot be saved.

ScenePersistent = 16

Object will remain in the scene during scene reset operations (e.g. when entering play mode), but will be destroyed when unloading or changing scene.

TemplateInstanceRoot = 512

Determines whether the scene object is the root of a template instance.

Methods

  • Takes an array of enum values and combines them as a single enum flag value. This assumes that the target enum is a flag enum that can have their values combined using bitwise operators.

    Type Parameters

    Parameters

    Returns EnumValueTyped<T, number>

    The combined enum value.

  • Type Parameters

    • T

    Parameters

    Returns string

    Compatibility

  • Returns string[]

    Compatibility

  • Parameters

    • index: number

    Returns number

    Compatibility

  • Returns number[]

    Compatibility

  • Gets the name for the enumeration value that matches the specified enumValue.

    Type Parameters

    • T

    Parameters

    Returns string

    The enumeration value or undefined if not found.

  • Gets the enumeration names

    Returns string[]

    The enumeration names.

  • Gets the enumeration value at the specified index.

    Type Parameters

    • T = number

    Parameters

    • index: number

      The index.

    Returns EnumValueTyped<T, number>

    The enumeration value or undefined if not found.

  • Determines if the enum value has the flags set.

    Type Parameters

    Parameters

    Returns boolean

  • Determines if the enum bits were changed from previousValue to currentValue.

    Type Parameters

    Parameters

    Returns boolean

  • Iterates the enumeration names

    Returns Generator<string, any, any>

    The enumeration names.

  • Iterates the enumeration values

    Type Parameters

    • T = any

    Returns Generator<EnumValueTyped<T, number>, any, any>

    The enumeration values.

  • Takes a single enum value and splits it into separated flag values set on the value. This assumes that the target enum is a flag enum that can have their values combined using bitwise operators.

    Type Parameters

    Parameters

    • value: number | BrandedType<number, "enum"> | BrandedType<T, "enum">

      The enum value to have it's value split using bitwise-and operator.

    Returns EnumValueTyped<T, number>[]

    An array of each "bit flag" set in the enum.