public override void OnInspectorGUI()
        {
            serializedObject.Update();

            EditorGUILayout.PropertyField(serializedObject.FindProperty("zones"));
            EditorGUILayout.PropertyField(serializedObject.FindProperty("speedCurve"));

            SerializedProperty tag = serializedObject.FindProperty("tagName");

            tag.stringValue = EditorGUILayout.TagField("Parallax tag", tag.stringValue);

            opacity = EditorGUILayout.Slider("Zone opacity", opacity, 0f, 1f);

            if (GUILayout.Button("Index elements"))
            {
                ParallaxHelper.Reindex(parallax);
            }

            EditorGUILayout.Space();

            if (GUI.changed)
            {
                FillGradient();
                serializedObject.ApplyModifiedProperties();
            }
        }
Пример #2
0
 public static void PreExport(UnityEngine.CloudBuild.BuildManifestObject manifest)
 {
     PlayerSettings.bundleVersion = manifest.GetValue <string>("buildNumber");
     ParallaxHelper.Reindex();
 }