Lens Scripting API

    Class DropshadowSettings

    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);

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    Methods

    Constructors

    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

    MMNEPVFCICPMFPCPTTAAATR