Version: 2020.3
언어: 한국어
Experimental: this API is experimental and might be changed or removed in the future.

IScriptableRuntimeReflectionSystem

interface in UnityEngine.Experimental.Rendering

매뉴얼로 전환

설명

Defines the required members for a Runtime Reflection Systems.

You can use the empty implementation as base class, see ScriptableRuntimeReflectionSystem.

using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Experimental.Rendering;

abstract class CustomRuntimeReflectionSystem : IScriptableRuntimeReflectionSystem { List<ReflectionProbe> m_RealtimeReflectionProbes = new List<ReflectionProbe>(); List<RenderTexture> m_RealtimeReflectionProbeTargets = new List<RenderTexture>();

public bool TickRealtimeProbes() { for (int i = 0, c = m_RealtimeReflectionProbes.Count; i < c; ++i) { var probe = m_RealtimeReflectionProbes[i]; var target = m_RealtimeReflectionProbeTargets[i];

RenderProbe(probe, target);

probe.realtimeTexture = target; }

return true; }

protected abstract void RenderProbe(ReflectionProbe probe, RenderTexture target); public abstract void Dispose(); }

Public 함수

TickRealtimeProbesUpdate the reflection probes.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961