Used in Text's outlineSettings property. Configures how text outlining will appear on a Text component.

// @input Component.Text textComponent

var outlineSettings = script.textComponent.outlineSettings;

outlineSettings.enabled = true;
outlineSettings.size = 0.25;
outlineSettings.fill.color = new vec4(0, 0, 1, 1);
interface OutlineSettings {
    enabled: boolean;
    fill: TextFill;
    size: number;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

enabled: boolean

Whether outline is enabled on the Text.

fill: TextFill

Settings for how the outline is drawn.

size: number

The strength of the outline effect, ranging from 0.0 (no outline) to 1.0 (very strong outline).

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