public static void Touch(PlayModeStateChange e) { var asset = TagData.Asset; if (asset == null) { return; } if (TagData.Tags != null && TagData.Tags.Except(UnityEditorInternal.InternalEditorUtility.tags).Count() > 0) { SPMenu.SyncTagData(TagData.Asset); } }
protected override void OnSPInspectorGUI() { EditorGUILayout.HelpBox("This holds a reference to all the available tags for access at runtime. The data is kept in Assets/Resources and should be the ONLY one that exists. Do not delete.\n\nSpacepuppy Framework", MessageType.Info); EditorGUILayout.LabelField("Tags"); EditorGUI.indentLevel++; foreach (var tag in _helper.Tags) { EditorGUILayout.LabelField(tag); } EditorGUI.indentLevel--; if (GUILayout.Button("Sync Tags")) { SPMenu.SyncTagData(_helper.Target); } }