Anyone know how to get it? I need to access it during editor mode in order to make an editor window that shows them.
EditorGUI.TagField gives you a selector for choosing a tag.
What you really want though, is `UnityEditorInternal.InternalEditorUtility.tags`, which is a string array of all tags in the system. This is a public but undocumented internal feature, so it may break in future releases of Unity.
string to_search_tag=“Player”;
for (int i = 0; i < UnityEditorInternal.InternalEditorUtility.tags.Length; i++) {
if (UnityEditorInternal.InternalEditorUtility.tags*.Contains(to_search_tag)) {*
Debug.Log ("At Position " + i + " is the Tag " + to_search_tag + " found
");
break;// attention : the first index is 0 !!!
}else{
}
}