Next: , Previous: , Up: Interaction   [Contents][Index]


9.8 Holo Text

Component: HoloText

This component allows the user to change the text of a 3D text object. This can be a fun way to add user-defined labels to your game. To use, add to an object with a TextMesh component on itself or one of it’s children.

GUI Settings

Field of HoloText: Rect guiArea

Normalized viewport rectangle indicating the area for the optional legacy Unity GUI for editing the text

Default value: new Rect(.3f, .3f, .3f, .3f)

Field of HoloText: int windowID

Unique identifier for this GUI window

Default value: 875439

Field of HoloText: bool showWindow

Should we show the legacy Unity GUI?

Default value: false

Available Messages

Message on HoloText: ChangeText (string)

Changes the text to what ever you like

Argument: The new text you would like to display

Message on HoloText: Save ()

Store the text value in Player Prefs under ’Unique Text Key’, which indicates the file the string is saved in

Message on HoloText: Load ()

Load the text value from Player Prefs using ’Unique Text Key’, which uniquely identifies the text file for this object

GUI Settings

Field of HoloText: Rect guiArea

Normalized viewport rectangle indicating the area for the optional legacy Unity GUI for editing the text

Default value: new Rect(.3f, .3f, .3f, .3f)

Field of HoloText: int windowID

Unique identifier for this GUI window

Default value: 875439

Field of HoloText: bool showWindow

Should we show the legacy Unity GUI?

Default value: false

Available Messages

Message on HoloText: ChangeText (string)

Changes the text to what ever you like

Argument: The new text you would like to display

Message on HoloText: Save ()

Store the text value in Player Prefs under ’Unique Text Key’, which indicates the file the string is saved in

Message on HoloText: Load ()

Load the text value from Player Prefs using ’Unique Text Key’, which uniquely identifies the text file for this object


Next: , Previous: , Up: Interaction   [Contents][Index]