Version: Unity 6.0 (6000.0)
LanguageEnglish
  • C#

Application.onBeforeRender

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

An event that is invoked every frame, on all platforms, immediately before rendering.

This callback runs as part of the frame loop on VR and non-VR platforms. It's commonly used for VR to sample input with minimal latency before rendering, but you can use it for any work that must run just before a frame is rendered.

Any work performed within this callback increases the latency between sampling input and rendering to the device. Keep the amount of work done in this callback to a minimum.