Version: 2022.3
언어: 한국어
public float depth ;

설명

Camera's depth in the camera rendering order.

Cameras with lower depth are rendered before cameras with higher depth.

Use this to control the order in which cameras are drawn if you have multiple cameras and some of them don't cover the full screen.

See Also: camera component, Camera.rect.

using UnityEngine;

public class ExampleClass : MonoBehaviour { Camera cam;

void Start() { // Set this camera to render after the main camera cam.depth = Camera.main.depth + 1; } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961