Is there any way to return a list of all existing tags so that one could declare a public variable that would show a popup list of all existing tags in the inspector for a script? Something like the way I can declare:
public var theMask : LayerMask;
but for tags?
There is GameObject.tag, so it depends on what you’re doing. To get all tags in the scene, you’d have to iterate through all objects and collect them as you go. I suppose you could iterate through LayerMask.LayerToName and dig them out of there, but it looks like it does not include the ‘canned’ tags like ‘MainCamera’