ReadOnlyTags()
Returns the tag(s) assigned to the currently running player.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: Unity.Multiplayer.PlayMode
- Assembly: UnityEngine.MultiplayerModule
public static string[] ReadOnlyTags()
Returns
Type | Description |
|---|---|
| string[] | Returns the array of assigned tags |
Examples
void Update(){ if (CurrentPlayer.ReadOnlyTags().Contains("YellowTeam")) { ... }}