Boat Attack使用了Universal RP的许多新图形功能,可以用于探索 Universal RP 的使用方式和技巧。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

35 行
1.2 KiB

using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.Rendering.Universal
{
/// <summary>
/// You can add a <c>ScriptableRendererFeature</c> to the <c>ScriptableRenderer</c>. Use this scriptable renderer feature to inject render passes into the renderer.
/// </summary>
/// <seealso cref="ScriptableRenderer"/>
/// <seealso cref="ScriptableRenderPass"/>
[MovedFrom("UnityEngine.Rendering.LWRP")] public abstract class ScriptableRendererFeature : ScriptableObject
{
/// <summary>
/// Initializes this feature's resources.
/// </summary>
public abstract void Create();
/// <summary>
/// Injects one or multiple <c>ScriptableRenderPass</c> in the renderer.
/// </summary>
/// <param name="renderPasses">List of render passes to add to.</param>
/// <param name="renderingData">Rendering state. Use this to setup render passes.</param>
public abstract void AddRenderPasses(ScriptableRenderer renderer,
ref RenderingData renderingData);
void OnEnable()
{
Create();
}
void OnValidate()
{
Create();
}
}
}