A class in Root.Township, the global namespace.
Client: on cameras. Raises a static event once every active camera with this component has finished rendering for the frame.
Constructors
| Member | What it is |
|---|
PostRenderNotifier() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|
private static int cameraCount | Static count of cameras still to render this frame. |
Properties
| Member | What it is |
|---|
Camera Camera { get; private set; } | The camera on this object. |
Events
| Member | What it is |
|---|
static event UpdateHandler RenderFinished | Static event raised after the last counted camera renders. |
Methods
4 private and internal methods
| Member | What it is |
|---|
private void Awake() | Stores the camera on this object. |
private void LateUpdate() | Counts this camera if it is active. |
private void OnPostRender() | Counts this camera as done, and raises RenderFinished when all are done. |
private void Update() | Resets the camera count for the frame. |