public static FieldsEditorWindow ShowWindow(object targetField, Object targetObject, string propertyPath = null) { FieldsEditorWindow window = ShowWindow(); window.targetField = targetField; window.targetObject = targetObject; window.propertyPath = propertyPath; return(window); }
public static FieldsEditorWindow ShowWindow(object targetField, Object targetObject, System.Func <object, object> GetTargetField, object userObject = null) { FieldsEditorWindow window = ShowWindow(); window.propertyPath = ""; window.targetField = targetField; window.targetObject = targetObject; window.GetTargetField = GetTargetField; window.userObject = userObject; return(window); }
public static FieldsEditorWindow ShowWindow() { Undo.undoRedoPerformed -= UndoRedoCallback; window = GetWindow(typeof(FieldsEditorWindow), true) as FieldsEditorWindow; window.propertyPath = ""; window.minSize = new Vector2(250, 300); window.focus = true; window.Show(); Undo.undoRedoPerformed += UndoRedoCallback; window.titleContent = new GUIContent("Fields Editor"); return(window); }