ImageEffectUsesCommandBuffer
Use this attribute when image effects are implemented using Command Buffers.
Read time 3 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Method)]public sealed class ImageEffectUsesCommandBuffer : Attribute
Remarks
Important: This API is compatible only with the Built-In Render Pipeline, which is no longer supported. To create a full-screen effect in the Universal Render Pipeline (URP), use the Full Screen Pass Renderer Feature.
When you use this attribute, Unity renders the Scene into a RenderTexture instead of the actual target. Please note that Camera.forceIntoRenderTexture may have the same effect, but only in some cases.