浏览代码

Made OnEnable and OnDisable overridable

/namespace
Thomas 7 年前
当前提交
a4429f47
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      ScriptableRenderPipeline/Core/Volume/VolumeComponent.cs

6
ScriptableRenderPipeline/Core/Volume/VolumeComponent.cs


internal ReadOnlyCollection<VolumeParameter> parameters { get; private set; }
void OnEnable()
protected virtual void OnEnable()
{
// Automatically grab all fields of type VolumeParameter for this instance
parameters = this.GetType()

.Select(t => (VolumeParameter)t.GetValue(this))
.ToList()
.AsReadOnly();
}
protected virtual void OnDisable()
{
}
public void SetAllOverridesTo(bool state)

正在加载...
取消
保存