public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.UpdateIfRequiredOrScript(); EditorGUILayout.PropertyField(properties.StartAngle, Content.StartAngle); EditorGUILayout.PropertyField(properties.EndAngle, Content.EndAngle); EditorGUILayout.PropertyField(properties.Offset, Content.Offset); EditorGUILayout.PropertyField(properties.Factor, Content.Factor); EditorGUILayout.PropertyField(properties.Mode, Content.Mode); using (new EditorGUI.IndentLevelScope()) { EditorGUILayoutx.MinField(properties.Top, properties.Bottom.floatValue, Content.Top); EditorGUILayoutx.MaxField(properties.Bottom, properties.Top.floatValue, Content.Bottom); using (new EditorGUI.DisabledScope((BoundsMode)properties.Mode.enumValueIndex == BoundsMode.Unlimited && !properties.Mode.hasMultipleDifferentValues)) EditorGUILayout.PropertyField(properties.Smooth, Content.Smooth); } EditorGUILayout.PropertyField(properties.Axis, Content.Axis); serializedObject.ApplyModifiedProperties(); EditorApplication.QueuePlayerLoopUpdate(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.UpdateIfRequiredOrScript(); EditorGUILayout.PropertyField(properties.Frequency, Content.Frequency); EditorGUILayout.PropertyField(properties.Amplitude, Content.Amplitude); EditorGUILayout.PropertyField(properties.Mode, Content.Mode); using (new EditorGUI.DisabledScope((BoundsMode)properties.Mode.enumValueIndex == BoundsMode.Unlimited && !properties.Mode.hasMultipleDifferentValues)) { using (new EditorGUI.IndentLevelScope()) { EditorGUILayout.Slider(properties.Falloff, 0f, 1f, Content.Falloff); EditorGUILayoutx.MaxField(properties.InnerRadius, properties.OuterRadius.floatValue, Content.InnerRadius); EditorGUILayoutx.MinField(properties.OuterRadius, properties.InnerRadius.floatValue, Content.OuterRadius); } } EditorGUILayout.PropertyField(properties.Speed, Content.Speed); EditorGUILayout.PropertyField(properties.Offset, Content.Offset); EditorGUILayout.PropertyField(properties.Axis, Content.Axis); serializedObject.ApplyModifiedProperties(); EditorApplication.QueuePlayerLoopUpdate(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.UpdateIfRequiredOrScript(); EditorGUILayout.PropertyField(properties.Factor, Content.Factor); EditorGUILayoutx.MinField(properties.Top, properties.Bottom.floatValue, Content.Top); EditorGUILayoutx.MaxField(properties.Bottom, properties.Top.floatValue, Content.Bottom); EditorGUILayout.PropertyField(properties.Smooth, Content.Smooth); EditorGUILayout.PropertyField(properties.Axis, Content.Axis); serializedObject.ApplyModifiedProperties(); EditorApplication.QueuePlayerLoopUpdate(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.UpdateIfRequiredOrScript(); EditorGUILayout.Slider(properties.Factor, 0f, 1f, Content.Factor); EditorGUILayoutx.MaxField(properties.InnerRadius, properties.OuterRadius.floatValue, Content.InnerRadius); EditorGUILayoutx.MinField(properties.OuterRadius, properties.InnerRadius.floatValue, Content.OuterRadius); EditorGUILayout.PropertyField(properties.Invert, Content.Invert); EditorGUILayout.PropertyField(properties.Axis, Content.Axis); serializedObject.ApplyModifiedProperties(); EditorApplication.QueuePlayerLoopUpdate(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.UpdateIfRequiredOrScript(); EditorGUILayoutx.MinField(properties.Factor, 0f, Content.Factor); EditorGUILayoutx.MinField(properties.Falloff, 0f); EditorGUILayout.PropertyField(properties.Radius, Content.Radius); EditorGUILayout.PropertyField(properties.UseNormals, Content.UseNormals); EditorGUILayout.PropertyField(properties.ClampAtBottom, Content.ClampAtBottom); EditorGUILayoutx.MinField(properties.Top, properties.Bottom.floatValue, Content.Top); EditorGUILayoutx.MaxField(properties.Bottom, properties.Top.floatValue, Content.Bottom); EditorGUILayout.LabelField(Content.Noise); using (new EditorGUI.IndentLevelScope()) { EditorGUILayout.LabelField(Content.Vertical); using (new EditorGUI.IndentLevelScope()) { EditorGUILayout.PropertyField(properties.VerticalFrequency, Content.VerticalFrequency); EditorGUILayout.PropertyField(properties.VerticalMagnitude, Content.VerticalMagnitude); } EditorGUILayout.LabelField(Content.Radial); using (new EditorGUI.IndentLevelScope()) { EditorGUILayout.PropertyField(properties.RadialFrequency, Content.RadialFrequency); EditorGUILayout.PropertyField(properties.RadialMagnitude, Content.RadialMagnitude); } } EditorGUILayout.PropertyField(properties.Axis, Content.Axis); serializedObject.ApplyModifiedProperties(); EditorGUILayoutx.WIPAlert(); EditorApplication.QueuePlayerLoopUpdate(); }