语言英语
  • C#

OcclusionArea.center

切换到手册
public Vector3 center;

描述

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

using UnityEngine;

[RequireComponent(typeof(OcclusionArea))] public class Example : MonoBehaviour { // Sets the center of the occlusion area to the center of the transform void Start() { transform.GetComponent<OcclusionArea>().center = Vector3.zero; } }

Did you find this page useful? Please give it a rating: