Exemplo n.º 1
0
        static void OnPlayModeStateChanged(PlayModeStateChange state)
        {
            switch (state)
            {
            case PlayModeStateChange.EnteredEditMode:
                break;

            case PlayModeStateChange.ExitingEditMode:
                GcEditorResourceBuilder.Build();
                break;

            case PlayModeStateChange.EnteredPlayMode:
                break;

            case PlayModeStateChange.ExitingPlayMode:
                break;
            }
        }
Exemplo n.º 2
0
 static void OnLaunch()
 {
     GcEditorSceneHelper.OnLaunch();
     GcEditorBuilder.OnLaunch();
     GcEditorResourceBuilder.OnLaunch();
 }
Exemplo n.º 3
0
 void IPreprocessBuildWithReport.OnPreprocessBuild(BuildReport report)
 {
     GcEditorResourceBuilder.Build();
 }
Exemplo n.º 4
0
        void OnPreprocessTexture()
        {
            var importer = assetImporter as TextureImporter;

            GcEditorResourceBuilder.OnPreprocessTexture(importer);
        }
Exemplo n.º 5
0
#pragma warning disable IDE0051
        void OnPostprocessAudio(AudioClip clip)
        {
            var importer = assetImporter as AudioImporter;

            GcEditorResourceBuilder.OnPostprocessAudio(importer, clip);
        }
Exemplo n.º 6
0
 private static void BuildResource()
 {
     GcEditorResourceBuilder.Build();
 }