◆ TryGetMeshAndMaterialBlockForCamera()

virtual bool TryGetMeshAndMaterialBlockForCamera ( Camera  cam,
out MeshAndMaterialConfigSet  meshAndMatsFound 
)
virtual
Parameters
camthis is the camera for which the mesh and materials will be found.
meshAndMatsFoundthe output parameter will hold the MeshAndMaterialBlock associated with the provided camera
Returns
False, if the camera does not have an assigned MeshAndMaterialBlock. True, when a MeshAndMaterialBlock is found associated with the camera (which is passed out via the meshAndMatsFound output parameter).

References PerCameraMeshAndMaterials.perCameraMesh.

Referenced by PerCameraMeshAndMaterials.CameraCallback(), PerCameraMeshAndMaterials.DrawMeshForCamera(), PerCameraMeshAndMaterials.GetPropertyBlock(), and PerCameraMeshAndMaterials.SetPropertyBlock().

+ Here is the caller graph for this function: