Version: 2021.2

DynamicGI.UpdateEnvironment

切换到手册
public static void UpdateEnvironment ();

描述

Schedules an update of the environment cubemap.

An update of the environment cubemap is scheduled.
If the system supports asynchronous readbacks (this can be queried with SystemInfo.supportsAsyncGPUReadback), the environment cubemap is read back without blocking while waiting for the result, but may lag one or more frames behind. The amount of environment readbacks which can be scheduled is limited. If you schedule updates faster than the readback can be performed an overflow will occur with a console warning.
If the system does not support asynchronous readbacks, the environment cubemap readback will stall the current thread, reading and processing each face of the cubemap one by one. An alternative to updating the environment cubemap for dynamic global illumination through readbacks is to manually set the contents with DynamicGI.SetEnvironmentData.