12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using UnityEngine.Scripting.APIUpdating;
- namespace UnityEngine.Rendering.Universal
- {
-
-
-
-
-
- [ExcludeFromPreset]
- [MovedFrom("UnityEngine.Rendering.LWRP")] public abstract class ScriptableRendererFeature : ScriptableObject
- {
- [SerializeField, HideInInspector] private bool m_Active = true;
-
-
-
- public bool isActive => m_Active;
-
-
-
- public abstract void Create();
-
-
-
-
-
- public abstract void AddRenderPasses(ScriptableRenderer renderer,
- ref RenderingData renderingData);
- void OnEnable()
- {
- Create();
- }
- void OnValidate()
- {
- Create();
- }
-
-
-
-
-
- public void SetActive(bool active)
- {
- m_Active = active;
- }
- }
- }
|