BroadcastReceiver
Jump To Parameters
Jump To Function Definitions
Parameter Definitions
Select the parameter name from below to jump directly to it on this page.
content
deathMessage
messageDestroyTime
scrollView
content
The content object of the scrollView.
| Exposed Value | Type | Default Value |
|---|---|---|
| private | GameObject | null |
deathMessage
The prefab that will be instantiated as a child of the content when “
this receive a "DEATH" broadcast message.
| Exposed Value | Type | Default Value |
|---|---|---|
| private | GameObject | null |
messageDestroyTime
How long to have the message be visible before it is removed.
| Exposed Value | Type | Default Value |
|---|---|---|
| private | float | 15.0f |
scrollView
The ScrollView object in this UI.
| Exposed Value | Type | Default Value |
|---|---|---|
| private | GameObject | null |
Function Definitions
Select the function name from below to jump directly to it on this page.
Awake
InstantiateDeathMessage
ReceiveBroadCastMessage
Update
protected virtual void Awake()
Disables the scrollview
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
No parameters
protected virtual void InstantiateDeathMessage(string message)
Adds a death message object to the message view.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
| Parameter Name | Description |
|---|---|
| message | string type, the message to display |
public virtual void ReceiveBroadCastMessage(BroadCastMessage message)
Perform certain actions based on the type of
BroadCastMessagethat is received from the data channel on the ChatBox.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | Does not return anything |
| Parameter Name | Description |
|---|---|
| message | BroadCastMessage type, the message and the type of message |
protected virtual void Update()
Enables/Disables the scroll view based on how many messages there are in the view.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
No parameters