Experimental: this API is experimental and might be changed or removed in the future.

CullResults.Cull(Camera,RenderLoop,CullResults)

Cambiar al Manual

Parámetros

cameraCamera to cull for.
renderLoopRender loop the culling results will be used with.
resultsCulling results.

Valor de retorno

void Flag indicating whether culling succeeded.

Descripción

Perform culling for a Camera.

This function is the same as calling GetCullingParameters for a camera, followed by a call to Cull that takes these culling parameters. Camera's transform, projection parameters and other flags that might affect culling are used.

Cull returns false if camera is invalid to render (empty viewport rectangle, invalid clip plane setup etc.).

Culling results are bound to a RenderLoop they will be used with; memory used by culling results is released once the render loop is finished.

See Also: CullResults, RenderLoop.


Parámetros

parametersParameters for culling.
renderLoopRender loop the culling results will be used with.

Valor de retorno

void Culling results.

Descripción

Perform culling with custom CullingParameters.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961