Skip to main content

Inworld Player

This is the class for global text management. It is originally added in Player Controller, where it would be called by Keycode.Backquote.

Inspector Variables

VariableDescription
Camera Controllerthe camera controller for controlling the main player
Global Chat CanvasThe canvas in runtime for displaying history logs and support typing/recording. Could be NULL
Trigger CanvasThe canvas in runtime to display triggers. mostly is NULL. Only used in some sample cases.
Record ButtonThe button for holding record in global panel
Content RTThe RectTransform of the Content
Bubble LeftThe ChatBubble aligned to the left
Bubble RightThe ChatBubble aligned to the right
Input FieldThe Input Field
RT CanvasThe real time canvas, mostly is NULL. Only used in some sample cases.
Init PositionIt's initial position, used to reset. Used in some sample cases.
Init RotationIt's initial rotation, used to reset. Used in some sample cases.

API

FunctionReturn TypeDescriptionParameters
SendTextvoidUI Functions. Called by the Send button or Keycode.ReturnN/A
BackToLobbyvoidUI Functions. Only used in some sample cases, used to get back to lobby.