Classes
Members
activeInstance :ChatLog
Type:
- Source:
Methods
(static) findInstance(title, nameopt) → {ChatLog}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
title |
string | |||
name |
string |
<optional> |
"ChatLog" |
- Source:
Returns:
- Type
- ChatLog
(static) getInstance(scene, title, nameopt) → {ChatLog}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
scene |
* | |||
title |
string | main | ||
name |
string |
<optional> |
"ChatLog" |
- Source:
Returns:
- Type
- ChatLog
addListener()
Add a listener to be called when input text is changed.
Listeners are current world, groups, i.e. whatever this chat is for.
- Source:
attachToHud()
Attach chatlog to the HUD
- Source:
dispose()
Clean up
- Source:
isSelectableMesh()
XR pointer selection support
- Source:
leftSide()
Move to left side of the screen
- Source:
log(who, what, link)
Log something written by someone.
Parameters:
Name | Type | Description |
---|---|---|
who |
String | who wrote that |
what |
String | what they wrote |
link |
object | world link |
- Source:
moveToAnchor()
Move either left or right, whatever is the current anchor
- Source:
removeListener()
Remove a listener
- Source:
rightSide()
Move to right side of the screen
- Source:
shareWorld()
Share a world: notifies all the listeners (world or group) with the world name, content and link
- Source:
show()
Show both TextArea and TextAreaInput, and attach to HUD.
- Source: