ドキュメント

Unity Engine


User Manual

Script Reference

Unity Engine


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

public static IReadOnlyList<string> Tags { get; }

Examples

void Update(){ if (CurrentPlayer.Tags.Contains("YellowTeam")) { ... }}