Unity 6.3
0 онлайн 26 гостей 3 в системе
Вход

OcclusionArea.center

Declaration

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; } }