filmov
tv
MultipleTags tutorial (Overview) - Multiple tags using the existing Unity tag system

Показать описание
MultipleTags overview:
MultipleTags enables you to apply multiple tags to a GameObject solely using the existing Unity tag system. This is done by stitching tags together to form a tagPath (ie. T1/T2/T3). By delineating tags with backslashes the Unity tag system will present a tagPath in a concise hierarchical menu structure. To augment the Unity tag interface an extremely powerful and elegant tag manager editor GUI is provided. The tag manager makes it easy to add/remove tags, find gameObjects by tag, optimize tags, generate a type safe tag access file, and much more (See screenshots). The tag manager also displays the tags associated with the currently selected gameObject(s). MulitpleTags provides the ability to use tag groups to facilitate organization and discovery (ie. Color.Red).
At runtime an intuitive set of APIs are available to harness the power of having multiple tags. FindGameObjectsWithTags API exists to find gameObjects with specfied tag(s), while gameObject extension methods allow you to refine your search. The extension methods also allow you to add/remove tags at runtime (Tags must exist in Unity). When searching for gameObjects a boolean enumeration is available or for greater flexibility use a free-form expression (ie. (Tag1 | Tag2) & !Tag3). The search expression also supports regex syntax (ie. Tag.*). To help form and test a search expression use the dropdown menu in the GUI "Find tags" section.
Resources:
MultipleTags features:
-Completely utilizes Unity tag system.
-The Unity tag manager is augmented by a comprehensive tag GUI control panel.
-Select GameObject(s) in hierarchy to reveal and modify tags in GUI.
-Search/modify Unity tags from GUI.
-Search/modify gameObject tags from GUI.
-Use tag access script to reference Unity tags in a type safe manner.
-APIs available to find gameObjects using tag name, logic expression, or Regex.
-APIs can find gameObjects using group tag syntax (ie. Vehicle.Car).
-APIs can find all gameObjects in a particular group (ie. Vehicle).
-GameObject extension methods enable search refinement and tag modification.
-GUI optimize command allows quick cleanup/optimization of existing tags.
-GUI colors are themed for light and dark skin.
-Works with AiUnity products ScriptBuilder, NLog, and CLog.
-Website, API Reference, Videos, and forums available for support.
-Tested on .NET 3.5 and 4.6.
-Full source code provided.