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
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 |
playerName
The text to modify with the Network Nickname.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | Text | None |
Function Definitions
Select the function name from below to jump directly to it on this page.
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 |
public virtual void Start()
Removes the namebar if you’re the owner player. Also sets the name on your networked versions via
SetPlayerNamefunction. 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