mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-21 17:50:57 -05:00
Unity6でGraphicsSettings.renderPipelineAssetがObsolete警告を出すのに対応
Unity6でGraphicsSettings.renderPipelineAssetがObsoleteになり、次のような警告が出ていました。 ``` Assets/VRM/Editor/BuildClass.cs(31,13): warning CS0618: 'GraphicsSettings.renderPipelineAsset' is obsolete: 'renderPipelineAsset has been deprecated. Use defaultRenderPipeline instead (UnityUpgradable) -> defaultRenderPipeline' ``` Unity6以降では、代わりとして推奨されるフィールド defaultRenderPipeline を使うようにしました。
This commit is contained in:
parent
08517b710b
commit
dc8b841f1e
|
|
@ -28,7 +28,11 @@ namespace VRM.DevOnly
|
|||
|
||||
public static void SwitchBuiltinPipeline()
|
||||
{
|
||||
#if UNITY_6000_0_OR_NEWER
|
||||
UnityEngine.Rendering.GraphicsSettings.defaultRenderPipeline = null;
|
||||
#else
|
||||
UnityEngine.Rendering.GraphicsSettings.renderPipelineAsset = null;
|
||||
#endif
|
||||
}
|
||||
|
||||
public static void BuildWebGL_SimpleViewer()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user