Exemple #1
0
 public static void UpdateRenderQueue(Material material, Shader defaultShader)
 {
     if (material.shader.renderQueue != material.renderQueue)
     {
         Shader renderQueueShader = defaultShader;
         if (material.renderQueue != renderQueueShader.renderQueue)
         {
             renderQueueShader = createRenderQueueShaderIfNotExists(defaultShader, material.renderQueue, true);
         }
         material.shader = renderQueueShader;
         ShaderImportFixer.backupSingleMaterial(material);
     }
 }
        static OnCompileHandler()
        {
            //Init Editor Variables with paths
            ThryEditor.GetThryEditorDirectoryPath();

            VRCInterface.OnCompile();
            Config.OnCompile();
            ModuleHandler.OnCompile();
            ShaderImportFixer.OnCompile();
            TrashHandler.EmptyThryTrash();

            UnityFixer.CheckAPICompatibility(); //check that Net_2.0 is ApiLevel
            UnityFixer.CheckDrawingDll();       //check that drawing.dll is imported
        }
 private static void AssetsImported(string[] assets)
 {
     VRCInterface.SetVRCDefineSybolIfSDKImported(assets);
     ShaderImportFixer.OnImport(assets);
     ShaderHelper.AssetsImported(assets);
 }