MText.
So, don’t forget to add using MText; on top of the script when referencing scripts on this asset.obj
is the gameObject
of the character being typed and duration is the value passed from the individual text.MText_UI_RaycastSelector
script attached needs to be in the scene to select items with mouse/touch. You can disable it when not using a 3D UI. This is automatically added when you create a 3d UI item (except plain text).MText_UI_RaycastSelector
, Camera.Main is used to assign camera in Start();
If not camera main is found and no camera is referenced in the inspector, the touch control/mouse control won't work.UpdateOncePerFrame
setting is turned on, which is on by default, texts are updated at the end of the frame. This makes sure multiple calls/changes to the text doesn't unnecessarily update the text multiple times in a single frame. If you need the text to be updated instantly, call UpdateText();
UpdateList()
to update the list.
SelectButton()
, UnselectButton()
, PressButton()
, Uninteractable()
, Interactable()
Toggle()
which is automatically added when creating toggle