ドキュメント

Unity Engine

Unity Engine

size

Size that the occlusion area will have.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public Vector3 size { get; set; }

Examples

using UnityEngine;[RequireComponent(typeof(OcclusionArea))]public class Example : MonoBehaviour{ // Sets an Occlusion area of 10 units in x, 20 units in y and 30 units in z void Start() { transform.GetComponent<OcclusionArea>().size = new Vector3(10, 20, 30); }}