Exemple #1
0
 /// <summary>
 /// Adds the required shaders for Unity Video before building.
 /// </summary>
 /// <param name="target"> Current Build targets platform. </param>
 /// <param name="path"> Output path of the current build. </param>
 public void OnPreprocessBuild(BuildTarget target, string path)
 {
     VideoShaderBuildFix.AddVideoDecodeShaders(target);
 }
 /// <summary>
 /// Removes all the shaders for Unity Video after building.
 /// <para/>
 /// <remarks>
 /// Ensures source control isn't cluttered with incorrect platform shaders.
 /// </remarks>
 /// </summary>
 /// <param name="target"> Current Build targets platform. </param>
 /// <param name="path"> Output path of the current build. </param>
 public void OnPostprocessBuild(BuildTarget target, string path)
 {
     VideoShaderBuildFix.RemoveAllVideoDecodeShaders();
 }