Version: 2019.3
LanguageEnglish
  • C#

VFXManager.PrepareCamera

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

public static void PrepareCamera(Camera cam);

Parameters

camThe Camera to prepare for processing VFX commands.

Description

Use this method to prepare per-Camera VFX commands for this frame.

This function updates Materials that the VisualEffect uses internally, but does not execute any rendering commands. To execute rendering commands, call VFXManager.ProcessCamera.

Scriptable Render Pipelines (SRP) are responsible for calling this function. The High Definition and Universal Render Pipelines implement this call.

If you create your own SRP, you should typically call this function before culling.