unity摄影机depth模式_Unity5.0_Camera.depth 深度_软件教程_资源库

摘要:Unity5.0_Camera.depth 深度_软件教程_资源库

Camera.depth 深度

var depth : float

Description描述

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.

如果你有多个相机并且其中一些不需要覆盖整个屏幕,可以使用这个来控制相机的绘制次序。

参见: Camera.rect 属性.

C#

JavaScript

using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {camera.depth = Camera.main.depth + 1;}}

// Set this camera to render after the main camera//设置这个相机在主相机之后渲染camera.depth = Camera.main.depth + 1;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值