SetupCamera() private méthode

private SetupCamera ( ) : void
Résultat void
Exemple #1
0
        void DrawQuickSetup()
        {
            SetWindowHeight(375f);

            EditorGUILayout.HelpBox("\nThese actions will automatically configure your scene for use with the Post Processing Stack.\n", MessageType.Info);

            EditorGUILayout.Space();

            //Camera setup
            EditorGUILayout.BeginHorizontal(EditorStyles.helpBox);
            {
                EditorGUILayout.LabelField("Setup component on active camera");
                if (GUILayout.Button("Execute"))
                {
                    AutoSetup.SetupCamera();
                }
            }
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.Space();

            //Volume setup
            EditorGUILayout.BeginHorizontal(EditorStyles.helpBox);
            {
                EditorGUILayout.LabelField("Create a new global Post Processing volume");
                if (GUILayout.Button("Execute"))
                {
                    AutoSetup.SetupGlobalVolume();
                }
            }
            EditorGUILayout.EndHorizontal();
        }
Exemple #2
0
 public static void PostInstall()
 {
     if (Settings.deleteDemoContent)
     {
         AssetDatabase.DeleteAsset(Demo.SCENES_PACKAGE_PATH);
     }
     if (Settings.setupCurrentScene)
     {
         AutoSetup.SetupCamera();
         AutoSetup.SetupGlobalVolume();
     }
 }