기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


ReadOnlyTags()

Returns the tag(s) assigned to the currently running player.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

경고
Deprecated. ReadOnlyTags has been deprecated. Use CurrentPlayer.Tags which has better performance properties.
public static string[] ReadOnlyTags()

Returns

Type

Description

string[]Returns the array of assigned tags

Examples

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