ドキュメント

Unity Engine

Unity Engine

center

Center of the occlusion area relative to the transform.
読み終わるまでの所要時間 1 分最終更新 25日前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
注意
Deprecated. Occlusion Area is deprecated. Use GPU Occlusion Culling instead. #from(6000.7)
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; }}