OcclusionArea.center 中心

var center : Vector3

Description描述

Center of the occlusion area relative to the transform

相对于变换遮挡区域的中心。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		transform.GetComponent<OcclusionArea>().center = Vector3.zero;
	}
}
// Sets the center of the occlusion area to the center of the transform
//设置遮挡区域的中心到变换的中心
@script RequireComponent(OcclusionArea)

transform.GetComponent(OcclusionArea).center = Vector3.zero;
Page last updated: 2011-2-25