Next: , Previous: , Up: Network   [Contents][Index]


13.13 Photon Team Object

Component: PhotonTeamObject

Photon Team Object allows team-based play by changing team indicators, tags and layers. Each team should have it’s own tag and layer. If you want to spawn team-based objects, you need a PhotonInstantiator component, which will cause anything it spawns to inherit it’s team.

Field of PhotonTeamObject: bool hideTeamLocally

Should we keep the team indicator object hidden for the local player?

Default value: true

Message on PhotonTeamObject: SetTeam (int)

Changes the object’s team

Argument: The new team for the object

Field of PhotonTeamObject: bool hideTeamLocally

Should we keep the team indicator object hidden for the local player?

Default value: true

Message on PhotonTeamObject: SetTeam (int)

Changes the object’s team

Argument: The new team for the object