center
Center of the occlusion area relative to the transform.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public Vector3 center { get; set; }
Examples
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; }}