同步四面体化当前加载的光探针位置。
调用此函数以四面体化当前加载的光探针位置。通常,您应该只在收到LightProbes.needsRetetrahedralization 事件时调用此函数。
using UnityEngine; using UnityEngine.SceneManagement;
public class TetrahedralizeExample : MonoBehaviour { void Start() { // Additively load a Scene containing light probes SceneManager.LoadScene("ExampleScene", LoadSceneMode.Additive);
// Force Unity to synchronously regenerate the tetrahedral tesselation for all loaded Scenes LightProbes.Tetrahedralize(); } }