Version: 2022.1
언어: 한국어
public RenderTexture targetTexture ;

설명

RenderTexture to draw to when VideoPlayer.renderMode is set to Video.VideoTarget.RenderTexture.

If the RenderTexture is of TextureDimension.Tex2D the video frames will be drawn directly into this target. For optimal performance, RenderTexture.width and RenderTexture.height should match those of the video media exactly.

If the RenderTexture is of TextureDimension.Cube the video frames will be interpreted as a cubemap in one of the 4 supported layouts (horizontal or vertical orientation of a cross or strip layout) based on video aspect ratio. The cubemap faces of the video frame are drawn to the 6 faces of the RenderTexture. For a one-to-one pixel mapping, RenderTexture.width and RenderTexture.height should match the size of the individual faces contained within the video media's cubemap (eg. for a 2048x1536 horizontal cross cubemap video, the RenderTexture cube size should be set to 512x512).

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