A font asset used for rendering text. Used by Text. For more information, see the Text guide.
// Assign a Font to a Label//@input Component.Label label//@input Asset.Font fontscript.label.fontAsset = script.font; Copy
// Assign a Font to a Label//@input Component.Label label//@input Asset.Font fontscript.label.fontAsset = script.font;
The name of the Asset in Lens Studio.
Readonly
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
other
A font asset used for rendering text. Used by Text. For more information, see the Text guide.
Example