Legacy Documentation: Version 5.2
Projector
Antialiasing

Image Effect Reference

This group handles all Render Texture-based fullscreen image postprocessing effects. They add a lot to the look and feel of your game without spending much time on artwork.

All image effects make use of Unity’s OnRenderImage function which any MonoBehavior attached to a camera can overwrite to accomplish a wide range of custom effects.

Image effects can be executed directly after the opaque pass or after opaque and transparent passes (default). The former behavior can very easily be acquired by adding the attribute ImageEffectOpaque to the OnRenderImage function of the effect in question. For an example of an effect doing this, have a look at the Edge Detection effect.

The scene used in above pages looks like this without any image effects applied:

Scene with no image postprocessing effects.
Scene with no image postprocessing effects.

Multiple image effects can be “stacked” on the same camera. Just add them and it will work.

Blur and Noise applied to the same camera.
Blur and Noise applied to the same camera.

The following pages describes the available image effects in greater detail.

Script access to Image Effects

To use Image Effects in your scripts you will need use the UnityStandardAssets library. In c# you should add:

// c#
using UnityStandardAssets.ImageEffects;

and in Javascript you should add:

//JS
import UnityStandardAssets.ImageEffects;
Projector
Antialiasing
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961