Version: 2020.3
public Vector3 size ;

描述

将在其中将反射应用于对象的盒体区域的大小。在探针的本地空间中测量。

盒体大小将按变换组件的比例缩放。

using UnityEngine;

public class Example : MonoBehaviour { void Start() { ReflectionProbe probe = GetComponent<ReflectionProbe>(); // Make the area long probe.size = new Vector3(10, 1, 1); } }