public override void OnInspectorGUI() { EditorGUILayout.PropertyField(source); ScreenConfigConnectionHelper.DrawGui("Settings", settingsList, ref settingsFallback, DrawSettings); if (showMinWidth) { ScreenConfigConnectionHelper.DrawSizerGui("Min Width", minWidthList, ref minWidthFallback); } if (showMaxWidth) { ScreenConfigConnectionHelper.DrawSizerGui("Max Width", maxWidthList, ref maxWidthFallback); } if (showMinHeight) { ScreenConfigConnectionHelper.DrawSizerGui("Min Height", minHeightList, ref minHeightFallback); } if (showMaxHeight) { ScreenConfigConnectionHelper.DrawSizerGui("Max Height", maxHeightList, ref maxHeightFallback); } ScreenConfigConnectionHelper.DrawSizerGui("Padding", paddingList, ref paddingFallback); }
public override void OnInspectorGUI() { base.DrawPaddingAndSpacingConfigurations(); ScreenConfigConnectionHelper.DrawGui("Settings", base.settingsConfigs, ref base.settingsFallback, base.DrawSettings); serializedObject.ApplyModifiedProperties(); }
public override void OnInspectorGUI() { ScreenConfigConnectionHelper.DrawGui("Settings", settingsList, ref settingsFallback, DrawSettings, AddSettings, DeleteSettings); if (layoutPriority != null) // Unity 2017+ { EditorGUILayout.PropertyField(layoutPriority); } }
public override void OnInspectorGUI() { bool tmp = activator.EditorPreview; activator.EditorPreview = EditorGUILayout.ToggleLeft("Editor Preview", activator.EditorPreview); if (activator.EditorPreview && tmp != activator.EditorPreview) { activator.Apply(); } ScreenConfigConnectionHelper.DrawGui("Settings", settingsList, ref settingsFallback, DrawSettings); }
public override void OnInspectorGUI() { ScreenConfigConnectionHelper.DrawSizerGui("Padding", paddingConfigs, ref paddingFallback); ScreenConfigConnectionHelper.DrawSizerGui("Spacing", spacingConfigs, ref spacingFallback); ScreenConfigConnectionHelper.DrawSizerGui("Cell Size", cellSizeConfigs, ref cellSizeFallback); ScreenConfigConnectionHelper.DrawGui("Settings", settingsConfigs, ref settingsFallback, DrawSettings); serializedObject.ApplyModifiedProperties(); //if(serializedObject.ApplyModifiedProperties()) //{ // GridLayoutGroup grid = target as GridLayoutGroup; //} }
public override void OnInspectorGUI() { EditorGUILayout.PrefixLabel("Live Update"); EditorGUILayout.BeginHorizontal(); autoPullFromTransform = GUILayout.Toggle(autoPullFromTransform, "↓ Auto-Pull", "ButtonLeft", GUILayout.MinHeight(30)); autoPushToTransform = GUILayout.Toggle(autoPushToTransform, "↑ Auto-Push", "ButtonRight", GUILayout.MinHeight(30)); EditorGUILayout.EndHorizontal(); if (autoPullFromTransform) { locator.CurrentTransformData.PullFromTransform(locator.transform as RectTransform); } ScreenConfigConnectionHelper.DrawGui("Rect Transform Override", transformConfigs, ref transformFallback, DrawTransformData); if (autoPushToTransform && !(pauseAutoPushOnce)) { locator.CurrentTransformData.PushToTransform(locator.transform as RectTransform); } pauseAutoPushOnce = false; }
public override void OnInspectorGUI() { ScreenConfigConnectionHelper.DrawGui("Settings", settingsList, ref settingsFallback, DrawSettings); ScreenConfigConnectionHelper.DrawSizerGui("Size Delta Settings", deltaSizerCollection, ref deltaSizerFallback); }
public override void OnInspectorGUI() { ScreenConfigConnectionHelper.DrawGui("Settings", settingsList, ref settingsFallback, DrawSettings); }