Class ScriptableRendererFeature
You can add a ScriptableRendererFeature
to the ScriptableRenderer
. Use this scriptable renderer feature to inject render passes into the renderer.
상속된 멤버
네임스페이스: UnityEngine.Rendering.Universal
어셈블리: solution.dll
구문
[ExcludeFromPreset]
[MovedFrom("UnityEngine.Rendering.LWRP")]
public abstract class ScriptableRendererFeature : ScriptableObject
프로퍼티
이름 | 설명 |
---|---|
isActive | Returns the state of the ScriptableRenderFeature (true: the feature is active, false: the feature is inactive). Use the method ScriptableRenderFeature.SetActive to change the value of this variable. |
메서드
이름 | 설명 |
---|---|
AddRenderPasses(ScriptableRenderer, ref RenderingData) | Injects one or multiple |
Create() | Initializes this feature's resources. This is called every time serialization happens. |
SetActive(bool) | Sets the state of ScriptableRenderFeature (true: the feature is active, false: the feature is inactive). If the feature is active, it is added to the renderer it is attached to, otherwise the feature is skipped while rendering. |