您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
38 行
1.5 KiB
38 行
1.5 KiB
using UnityEngine.Experimental.Rendering.HDPipeline;
|
|
|
|
namespace UnityEditor.Experimental.Rendering.HDPipeline
|
|
{
|
|
class SerializedHDRenderPipelineAsset
|
|
{
|
|
public SerializedObject serializedObject;
|
|
|
|
public SerializedProperty renderPipelineResources;
|
|
public SerializedProperty diffusionProfileSettings;
|
|
public SerializedProperty allowShaderVariantStripping;
|
|
|
|
public SerializedRenderPipelineSettings renderPipelineSettings;
|
|
public SerializedFrameSettings defaultFrameSettings;
|
|
|
|
public SerializedHDRenderPipelineAsset(SerializedObject serializedObject)
|
|
{
|
|
this.serializedObject = serializedObject;
|
|
|
|
renderPipelineResources = serializedObject.FindProperty("m_RenderPipelineResources");
|
|
diffusionProfileSettings = serializedObject.Find((HDRenderPipelineAsset s) => s.diffusionProfileSettings);
|
|
allowShaderVariantStripping = serializedObject.Find((HDRenderPipelineAsset s) => s.allowShaderVariantStripping);
|
|
|
|
renderPipelineSettings = new SerializedRenderPipelineSettings(serializedObject.Find((HDRenderPipelineAsset a) => a.renderPipelineSettings));
|
|
defaultFrameSettings = new SerializedFrameSettings(serializedObject.FindProperty("m_FrameSettings"));
|
|
}
|
|
|
|
public void Update()
|
|
{
|
|
serializedObject.Update();
|
|
}
|
|
|
|
public void Apply()
|
|
{
|
|
serializedObject.ApplyModifiedProperties();
|
|
}
|
|
}
|
|
}
|