Skip to main content

PostRenderNotifier

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​

MemberWhat it is
PostRenderNotifier()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private static int cameraCountStatic count of cameras still to render this frame.

Properties​

MemberWhat it is
Camera Camera { get; private set; }The camera on this object.

Events​

MemberWhat it is
static event UpdateHandler RenderFinishedStatic event raised after the last counted camera renders.

Methods​

4 private and internal methods
MemberWhat 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.