Exemple #1
0
        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();

            EditorGUILayoutx.MinField(properties.Iterations, 0, Content.Iterations);
            EditorGUILayout.PropertyField(properties.DeformerElement, Content.Deformer);

            serializedObject.ApplyModifiedProperties();

            var deformerProperty = properties.DeformerElement.FindPropertyRelative("component");
            var deformer         = deformerProperty.objectReferenceValue;


            if (!properties.DeformerElement.hasMultipleDifferentValues && deformer != null)
            {
                CreateCachedEditor(deformer, null, ref deformerEditor);

                SceneView.onSceneGUIDelegate -= SceneGUI;
                SceneView.onSceneGUIDelegate += SceneGUI;

                using (new EditorGUILayout.VerticalScope(DeformEditorResources.GetStyle("Box")))
                    deformerEditor.OnInspectorGUI();
            }

            EditorApplication.QueuePlayerLoopUpdate();
        }
Exemple #4
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            serializedObject.UpdateIfRequiredOrScript();

            EditorGUILayoutx.MinField(properties.Iterations, 0, Content.Iterations);
            EditorGUILayout.PropertyField(properties.Deformer, Content.Deformer);

            serializedObject.ApplyModifiedProperties();

            EditorApplication.QueuePlayerLoopUpdate();
        }
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            serializedObject.UpdateIfRequiredOrScript();

            EditorGUILayout.Slider(properties.Factor, 0f, 1f, Content.Factor);
            EditorGUILayoutx.MinField(properties.Falloff, 0f, Content.Falloff);
            EditorGUILayout.PropertyField(properties.Invert, Content.Invert);
            EditorGUILayout.PropertyField(properties.Axis, Content.Axis);

            serializedObject.ApplyModifiedProperties();

            EditorApplication.QueuePlayerLoopUpdate();
        }
Exemple #6
0
        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.PropertyField(properties.Frequency, Content.Frequency);
            EditorGUILayout.PropertyField(properties.Amplitude, Content.Amplitude);
            EditorGUILayoutx.MinField(properties.Falloff, 0f, Content.Falloff);
            EditorGUILayout.PropertyField(properties.Offset, Content.Offset);
            EditorGUILayout.PropertyField(properties.Speed, Content.Speed);
            EditorGUILayout.PropertyField(properties.Axis, Content.Axis);

            serializedObject.ApplyModifiedProperties();

            EditorApplication.QueuePlayerLoopUpdate();
        }
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            serializedObject.UpdateIfRequiredOrScript();

            EditorGUILayoutx.MinField(properties.WaveLength, 0f, Content.WaveLength);
            EditorGUILayout.Slider(properties.Steepness, 0f, 1f, Content.Steepness);
            EditorGUILayout.PropertyField(properties.Speed, Content.Speed);
            EditorGUILayout.PropertyField(properties.Offset, Content.Offset);
            EditorGUILayout.PropertyField(properties.Axis, Content.Axis);

            serializedObject.ApplyModifiedProperties();

            EditorGUILayoutx.WIPAlert();

            EditorApplication.QueuePlayerLoopUpdate();
        }
Exemple #9
0
        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();
        }