Version: 2022.3

PlayerSettings.SetOverrideShaderChunkSettingsForPlatform

切换到手册
public static void SetOverrideShaderChunkSettingsForPlatform (BuildTarget buildTarget, bool value);

参数

buildTarget The build target to set the override for.
value Set the value to true if you want settings for the buildTarget to override the default settings.

描述

Enable this to override the default shader variant chunk settings.

If you set SetOverrideShaderChunkSettingsForPlatform to true for a build target, you can do the following: Use PlayerSettings.SetShaderChunkCountForPlatform to override PlayerSettings.SetDefaultShaderChunkCount. Use PlayerSettings.SetShaderChunkSizeInMBForPlatform to override PlayerSettings.SetDefaultShaderChunkSizeInMB. See Also: PlayerSettings.GetOverrideShaderChunkSettingsForPlatform.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961