예제 #1
0
        void PropertyField(CloudMapParameter map, string label)
        {
            DrawHeader(label);

            PropertyField(map.cloudMap);
            using (new IndentLevelScope())
            {
                for (int i = 0; i < 4; i++)
                {
                    PropertyField(map.opacities[i]);
                }
            }

            PropertyField(map.rotation);
            PropertyField(map.tint);
            PropertyField(map.exposure);

            PropertyField(map.distortion);
            if (map.distortion.value.intValue != (int)CloudDistortionMode.None)
            {
                EditorGUI.indentLevel++;
                PropertyField(map.scrollOrientation, scrollOrientationLabel);
                PropertyField(map.scrollSpeed, scrollSpeedLabel);
                if (map.distortion.value.intValue == (int)CloudDistortionMode.Flowmap)
                {
                    PropertyField(map.flowmap);
                }
                EditorGUI.indentLevel--;
            }

            PropertyField(map.lighting);
            using (new IndentLevelScope())
            {
                PropertyField(map.steps);
                PropertyField(map.thickness);
            }
            PropertyField(map.castShadows);
        }
예제 #2
0
        void PropertyField(CloudMapParameter map, string label)
        {
            EditorGUILayout.Space();
            EditorGUILayout.LabelField(label, EditorStyles.miniLabel);

            PropertyField(map.cloudMap);
            using (new HDEditorUtils.IndentScope())
            {
                for (int i = 0; i < 4; i++)
                {
                    PropertyField(map.opacities[i]);
                }
            }

            PropertyField(map.rotation);
            PropertyField(map.tint);
            PropertyField(map.exposure);

            PropertyField(map.distortion);
            using (new HDEditorUtils.IndentScope())
            {
                PropertyField(map.scrollDirection);
                PropertyField(map.scrollSpeed);
                if (map.distortion.value.intValue == (int)CloudDistortionMode.Flowmap)
                {
                    PropertyField(map.flowmap);
                }
            }

            PropertyField(map.lighting);
            using (new HDEditorUtils.IndentScope())
            {
                PropertyField(map.steps);
                PropertyField(map.thickness);
            }
            PropertyField(map.castShadows);
        }