PhotoCaptureFrame.UploadImageDataToTexture

Cambiar al Manual
public void UploadImageDataToTexture (Texture2D targetTexture);

Parámetros

targetTextureThe target texture that the captured image data will be copied to.

Descripción

This method will copy the captured image data into a user supplied texture for use in Unity.

You may only use this method if you specified the BGRA32 format in your CameraParameters. Keep in mind that this operation will happen on the main thread and therefore be slow. The captured image will also appear flipped on the HoloLens. You can reorient the image by using a custom shader.

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