public void GUIFill(ref object obj) { #if UNITY_EDITOR if (obj == null || !obj.GetType().IsAssignableFrom(typeof(EffectLPopup))) { obj = new EffectLPopup(0); } EffectUtility.FormatPopup(ref (obj as EffectLPopup).index, (obj as EffectLPopup).popup); #endif }
void Init() { var t = NodeStack.getProperty("Transform", BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance, T => T.PropertyType == typeof(Vector3)); string[] name = new string[t.Count]; int index = 0; foreach (PropertyInfo info in t) { name[index] = info.Name; index++; } index = 0; type = new EffectLPopup(index, name); }