GetExistingTag(string)
Get a handle to a existing defined tag.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static TagHandle GetExistingTag(string tagName)
Parameters
The name of the tag to get a handle to.
Returns
Type | Description |
|---|---|
| TagHandle | A 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.