DropshadowSettings
ClassUsed in Text's dropShadowSettings property.
- Available on all platforms
Used in Text's dropShadowSettings property.
Configures how dropshadow will appear on a Text component.
Index
Example
// @input Component.Text textComponent
var shadowSettings = script.textComponent.dropshadowSettings;
shadowSettings.enabled = true;
shadowSettings.offset = new vec2(0.15, 0.15);
Extends
Properties
enabled
enabled:
boolean
Whether dropshadow is enabled on the Text.
Default Value
false
fill
fill:
TextFill
Settings for how the inside of the dropshadow is drawn.
offset
offset:
vec2
An (x, y) offset controlling where the dropshadow is drawn relative to the Text.
Default Value
(0.25, 0.25)
Methods
getTypeName()
staticgetTypeName():TypeName<DropshadowSettings>
Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().
Returns
TypeName<DropshadowSettings>
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object matches or derives from the passed in type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean