기술 자료

Unity Engine

Unity Engine

GetExistingTag(string)

Get a handle to a existing defined tag.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static TagHandle GetExistingTag(string tagName)

Parameters

tagName

The name of the tag to get a handle to.

Returns

Type

Description

TagHandleA new TagHandle for the existing tag.

Remarks

This method can only be used to get references to tags that were already defined. If you pass a tag name which is not already defined, it will throw an exception.
Additional Resources: GameObject.CompareTag.