Пример #1
0
        public static void Start()
        {
            Debug.ClearDeveloperConsole();

            UpdateLightSettings( );

            // 1. Prepare objects for bake

            // Fetch PrefabVaker components from current active scene
            EditorUtils.GetAllPrefabs( ).ForEach(x => {
                // Set all nested object as static for bake
                EditorUtils.LockForBake(x.gameObject);
            });

            // 2. Display progress dialog and await for bake complete in `BakeCompelte()`
            BakeStart( );

            // 3. Start baking
            Lightmapping.BakeAsync( );
        }