docs.unity.cn
    Show / Hide Table of Contents

    Class ProbeVolumeSceneData

    A class containing info about the bounds defined by the probe volumes in various scenes.

    Inheritance
    Object
    ProbeVolumeSceneData
    Namespace: UnityEngine.Rendering
    Syntax
    [Serializable]
    public class ProbeVolumeSceneData : ISerializationCallbackReceiver

    Constructors

    ProbeVolumeSceneData(Object, String)

    Constructor for ProbeVolumeSceneData.

    Declaration
    public ProbeVolumeSceneData(Object parentAsset, string parentSceneDataPropertyName)
    Parameters
    Type Name Description
    UnityEngine.Object parentAsset

    The asset holding this ProbeVolumeSceneData, it will be dirtied every time scene bounds or settings are changed.

    String parentSceneDataPropertyName

    The name of the property holding the ProbeVolumeSceneData in the parentAsset.

    Fields

    sceneBounds

    A dictionary containing the Bounds defined by probe volumes for each scene (scene path is the key of the dictionary).

    Declaration
    public Dictionary<string, Bounds> sceneBounds
    Field Value
    Type Description
    Dictionary<String, UnityEngine.Bounds>

    Methods

    OnAfterDeserialize()

    OnAfterDeserialize implementation.

    Declaration
    public void OnAfterDeserialize()
    Implements
    UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize()

    OnBeforeSerialize()

    OnBeforeSerialize implementation.

    Declaration
    public void OnBeforeSerialize()
    Implements
    UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize()

    SetParentObject(Object, String)

    Set a reference to the object holding this ProbeVolumeSceneData.

    Declaration
    public void SetParentObject(Object parent, string parentSceneDataPropertyName)
    Parameters
    Type Name Description
    UnityEngine.Object parent

    The object holding this ProbeVolumeSceneData, it will be dirtied every time scene bounds or settings are changed.

    String parentSceneDataPropertyName

    The name of the property holding the ProbeVolumeSceneData in the parentAsset.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 17 July 2023