Tags
Returns the tag(s) assigned to the currently running player. This property is read-only and should be used to access the tags without modifying them.
読み終わるまでの所要時間 1 分最終更新 23日前
Definition
- Type: Property
- Namespace: Unity.Multiplayer.PlayMode
- Assembly: UnityEngine.MultiplayerModule
public static IReadOnlyList<string> Tags { get; }
Examples
void Update(){ if (CurrentPlayer.Tags.Contains("YellowTeam")) { ... }}