浏览代码

Fixed wind not updating properly

/main
Thomas 4 年前
当前提交
af35f5bd
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      Assets/Scripts/BasicWind/BasicWindData.cs

4
Assets/Scripts/BasicWind/BasicWindData.cs


using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.HighDefinition;
namespace HDRPSamples
{

void ApplySettings()
{
BasicWind windSettings = VolumeManager.instance.stack.GetComponent<BasicWind>();
var stack = HDCamera.GetOrCreate(Camera.main).volumeStack;
var windSettings = stack.GetComponent<BasicWind>();
if (windSettings == null)
return;

正在加载...
取消
保存