Used in Text's dropShadowSettings property. Configures how dropshadow will appear on a Text component.

// @input Component.Text textComponent

var shadowSettings = script.textComponent.dropshadowSettings;

shadowSettings.enabled = true;
shadowSettings.offset = new vec2(0.15, 0.15);
interface DropshadowSettings {
    enabled: boolean;
    fill: TextFill;
    offset: vec2;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

enabled: boolean

Whether dropshadow is enabled on the Text.

fill: TextFill

Settings for how the inside of the dropshadow is drawn.

offset: vec2

An (x, y) offset controlling where the dropshadow is drawn relative to the Text.

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean