◆ RegisterObjectWithCallbackCamera()

static void RegisterObjectWithCallbackCamera ( CameraCallbackSignture  function,
Camera  cam 
)
static
Parameters
functionThis is the function that will be called, it takes the rendering Camera as a parameter, but doe not need to use it. If the object that contains this function is deleted, the function will be automatically unregistered. Note: this function will continue to be called, even if the object that contains this function is disabled/deactivated.
camThe camera that will call back the provided function, when PreCull is executed.

Referenced by PerCameraMeshAndMaterials.OnEnable(), and PerCameraMeshAndMaterials.RegisterCamera().

+ Here is the caller graph for this function: