interface Settings {
    h?: number;
    hasAlpha?: boolean;
    precision?: number;
    resizeMode?: null | ResizeMode;
    src?: string;
    type?: typeof Lightning.textures.ImageTexture;
    w?: number;
    x?: number;
    y?: number;
}

Hierarchy (View Summary)

Properties

h?: number

Texture clipping height

If 0 then shows full width.

This should not be set at the same time as resizeMode.

See Clipping for more information.

hasAlpha?: boolean
precision?: number

Texture render precision

resizeMode?: null | ResizeMode

Texture resize mode (Automatic resize + clipping)

When set, enables automatic clipping to a specific rectangular area.

Note: resizeMode actually modifies the following texture clipping properties, so it should not be set at the same time as them:

See Clipping - ResizeMode for more information.

null (disabled)

src?: string
w?: number

Texture clipping width

If 0 then shows full width.

This should not be set at the same time as resizeMode.

See Clipping for more information.

x?: number

Texture clipping x-offset

This should not be set at the same time as resizeMode.

See Clipping for more information.

y?: number

Texture clipping x-offset

This should not be set at the same time as resizeMode.

See Clipping for more information.