Enumeration ResourceType

Types of resources.

Constructors

  • Parameters

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

    Returns ResourceType

Values

AnimationClip = 17
AudioClip = 16
CarbonMaterial = 29
CarbonMaterialInstance = 31
Font = 3
GlyphImage = 22
Image = 21
JavaScriptCode = 11
LightProbeCapture = 25
Material = 7
Mesh = 2
NavigationData = 28
PhotometricLightProfile = 19
PhysicsMaterial = 14
PhysicsMesh = 15
PlainText = 9
Scene = 23
Shader = 4
ShaderInclude = 5
ShaderSource = 6
Shape = 20
SkeletonPhysicsData = 30
SourceData = 26
SpriteImage = 1
StringTable = 12
Template = 8
TestCollection = 27
Texture = 0
TypeScriptCode = 10
TypeScriptResource = 24
UISkin = 13
Undefined = 32
VectorField = 18

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.