Example #1
0
        public void InitEnumTypeSelector(Type baseType, string enumTypeVar)
        {
            this.enumTypeFieldName = enumTypeVar;
            if (enumTypeSelector == null)
            {
                enumTypeSelector = new TypeSelector(baseType);
            }
            else
            {
                enumTypeSelector.SetBaseType(baseType);
            }
            string enumTypeName = obj.GetFieldValue <string>(enumTypeVar);

            enumTypeSelector.SetSelected(TypeEx.GetType(enumTypeName));
        }
Example #2
0
 public ComponentSearchTab(TabbedEditorWindow window) : base("Comp Search", window)
 {
     selector = new TypeSelector(typeof(Object));
     selector.SetSelected(typeof(Transform));
 }