Component.camera 摄像机

var camera : Camera

Description描述

The Camera attached to this GameObject (null if there is none attached).

Camera附加到GameObject(游戏物体)(如无附加则为空)。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public void Awake() {

		camera.fieldOfView = 40;

	}

}
camera.fieldOfView = 40;
Page last updated: 2010-12-11