UpdateShaderAsset
Replaces the existing source code in the specified shader with the source code in the supplied string.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
UpdateShaderAsset(AssetImportContext, Shader, string, bool)
Replaces the existing source code in the specified shader with the source code in the supplied string.
public static void UpdateShaderAsset(AssetImportContext context, Shader shader, string source, bool compileInitialShaderVariants)
Parameters
A context object that the asset system needs to register shader dependencies properly.
UpdateShaderAsset(Shader, string)
Replaces the existing source code in the specified shader with the source code in the supplied string.
public static void UpdateShaderAsset(Shader shader, string source)
Parameters
UpdateShaderAsset(Shader, string, bool)
Replaces the existing source code in the specified shader with the source code in the supplied string.
public static void UpdateShaderAsset(Shader shader, string source, bool compileInitialShaderVariants)