Back To Index

PlayerNameBar

Jump To Parameters
Jump To Function Definitions


Parameter Definitions

Select the parameter name from below to jump directly to it on this page.

playerBar
playerName


playerBar

The holder object for the player name bar. Will disable this if not a network version of this player.

Exposed Value Type Default Value
public GameObject None

Back To Top


playerName

The text to modify with the Network Nickname.

Exposed Value Type Default Value
public Text None

Back To Top

Function Definitions

Select the function name from below to jump directly to it on this page.

SetPlayerName
Start


public virtual void SetPlayerName(string nameText)

Sets the name shown on the name bar to whatever is passed in via the input.

Expose Value Overrideable Returns
public True Does not return anything
Parameter Name Description
nameText string type, the input name

Back To Top


public virtual void Start()

Removes the namebar if you’re the owner player. Also sets the name on your networked versions via SetPlayerName function. Sets this player’s name on the name bar based on the owner id if the photon view. Will find the player that owns this PhotonView and attach that players Nickname to this name bar.

Expose Value Overrideable Returns
public True Does not return anything

No parameters

Back To Top