기술 자료

Unity Engine

Unity Engine

CompilePass(Material, int, bool)

Request the Editor to compile the Shader Variant needed for the specific pass of the given Material.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void CompilePass(Material material, int pass, bool forceSync = false)

Parameters

material

Target Material.

pass

Index of the target Shader pass.

forceSync

Forces the script execution to wait until the compilation has finished. Optional.

Remarks