概要
using UnityEngine; public class Example : MonoBehaviour { private void Update() { var tag = gameObject.tag; } }
検証環境
- Unity 2017.4.7f1
using UnityEngine; public class Example : MonoBehaviour { private void Update() { var tag = gameObject.tag; } }