Version: 2020.3
public NativeArray<T> GetData (int layer);

파라미터

layer The index of the layer to retrieve.

설명

Fetches the data of a successful request.

This method throws an InvalidOperationException if called when the request has not been fulfilled or has been disposed of. If the request is still pending then calling AsyncGPUReadbackRequest.done on this request will return false. In the case of a request not completing successfully, or if it has been disposed of then calling AsyncGPUReadbackRequest.hasError on this request will return true. Layer index allows you to access the different request slices of a Texture3D,TextureCube,Texture2DArray and TextureCubeArray.

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