Back To Index

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

Back To Top


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

Back To Top


messageDestroyTime

How long to have the message be visible before it is removed.

Exposed Value Type Default Value
private float 15.0f

Back To Top


scrollView

The ScrollView object in this UI.

Exposed Value Type Default Value
private GameObject null

Back To Top

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

Back To Top


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

Back To Top


public virtual void ReceiveBroadCastMessage(BroadCastMessage message)

Perform certain actions based on the type of BroadCastMessage that 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

Back To Top


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

Back To Top