RSX Code Reference
    Preparing search index...
    • rsx
    • ReflectionProperty

    Class ReflectionProperty

    Class that represents a reflectable script property.

    Hierarchy (View Summary)

    Index
    declaringType: Type

    The class that declares this member.

    name: string

    The name of given type.

    • get isGettable(): boolean

      Determines if the reflected property can have it's getter called to retrieve the value.

      Returns boolean

    • get isSettable(): boolean

      Determines if the reflected property can have it's setter called to set the value.

      Returns boolean

    • Retrieves a custom attribute of a specified type that is applied to a specified member.

      Type Parameters

      Parameters

      • attributeType: ClassOf<T>

        The type of attribute to search for. Only attributes that are assignable to this type are returned.

      Returns T

      A custom attribute that matches T, or null if no such attribute is found.

    • Retrieves custom attributes of a specified type that is applied to this member.

      Type Parameters

      Parameters

      • attributeType: ClassOf<T>

        The type of attribute to search for. Only attributes that are assignable to this type are returned.

      Returns T[]

      Custom attributes that matche T

    • Gets value of this field to given value.

      Parameters

      • obj: any

        The object whose value will be get.

      Returns any

      Current field value.

    • Checks if this property is static.

      Returns boolean

      Whether this property is static.

    • Sets value of this property to given value.

      Parameters

      • obj: any

        The object whose property value will be set.

      • value: any

        The new property value.

      Returns void