OcclusionArea.size 大小

var size : Vector3

Description描述

Size that the occlusion area will have

遮挡区域的大小。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		transform.GetComponent<OcclusionArea>().size = new Vector3(10, 20, 30);
	}
}
// Sets an Occlusion area of 10 units in x, 20 units in y and 30 units in z
//设置遮挡区域在x轴10单位,在y轴20单位,在z轴30单位

@script RequireComponent(OcclusionArea)

transform.GetComponent(OcclusionArea).size = Vector3(10,20,30);
Page last updated: 2011-2-25