MRTextEntity
MRDivEntity
MRTextEntity ⇐ The text element that is used to represent normal HTML text one would expect in a web browser. Used specifically on mr-div
items. Inherits from MRDivEntity.
Kind: global class
Extends: MRDivEntity
- MRTextEntity ⇐
MRDivEntity
mrTextEntity.MRTextEntity
Kind: instance class of MRTextEntity
new exports.MRTextEntity()
Constructor for the MRTextEntity object. Sets up the 3D aspect of the text, including the object, texture, and update check. Additionally, adds an event listener for the text to auto-augment whenever the panel size changes.
mrTextEntity.connected()
Callback function of MREntity - sets up the textObject of the text item.
Kind: instance method of MRTextEntity
number
mrTextEntity.triggerTextStyleUpdate() ⇒ Triggers a system run to update text specifically for the entity calling it. Useful when it’s not an overall scene event and for cases where relying on an overall scene or all items to update isnt beneficial.
Kind: instance method of MRTextEntity
Returns: number
- - height of the 3D object.