urp中Camera的Rendering.Renderer里的选项是取决于GraphicsSetting.Scriptabe;RenderPipelineSettings的URPAsset
//URP中的摄像机参数基本会使用该API来修改文章来源:https://www.toymoban.com/news/detail-737164.html
var camData = Camera.main.GetUniversalAdditionalCameraData();文章来源地址https://www.toymoban.com/news/detail-737164.html
一.动态修改项目的Universal Render Pipeline Asset(以下简称URPAsset)
var urpAsset = ResourceManager.LoadAsset<RenderPipelineAsset>("UrpAssets/UrpAssetsName")
GraphicsSettings.renderPipelineAsset = urpAsset
//QualitySettings里的修改
//QualitySettings.renderPipeline = urpAsset
二.动态修改Camera的Renderer
var camData = CameraExtensions.GetUniversalAdditionalCameraData(Camera.main)
//var ca
到了这里,关于Unity-URP 动态设置Camera.Rendering的参数的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!