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

    Class Vector2TextureProperty

    The Vector2TextureProperty implements a texture property with a Vector2 factor. The class follows the 'copy-on-write' pattern, which means that every operation returns a copy of the property with updated values. It also implies that the values of the property cannot be directly modified.

    The concept of immutability improves sharing of objects as all types in TypeScript are assigned by identity, instead of by-value (e.g. a copy) as in other programming languages like C.

    Index
    _factor: Vector2
    • get factor(): Vector2

      A factor to be combined with the texture.

      Returns Vector2

    • set factor(value: Immutable<Vector2>): void

      Parameters

      Returns void

    • get isTextureValid(): boolean

      Property that returns true if the texture property has a valid texture associated with it.

      Returns boolean