docs.unity.cn
    Show / Hide Table of Contents

    Class ProbeVolumeBakingSet

    An Asset which holds a set of settings to use with a .

    Inheritance
    Object
    Object
    ScriptableObject
    ProbeVolumeBakingSet
    Inherited Members
    UnityEngine.ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    UnityEngine.ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    UnityEngine.Object.GetHashCode()
    UnityEngine.Object.Equals(System.Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    UnityEngine.Object.Instantiate<T>(T)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
    UnityEngine.Object.DestroyObject(UnityEngine.Object)
    UnityEngine.Object.FindSceneObjectsOfType(System.Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    UnityEngine.Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
    UnityEngine.Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    UnityEngine.Object.FindFirstObjectByType<T>()
    UnityEngine.Object.FindAnyObjectByType<T>()
    UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
    UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    Syntax
    public sealed class ProbeVolumeBakingSet : ScriptableObject, ISerializationCallbackReceiver

    Fields

    minDistanceBetweenProbes

    The minimum distance between two probes in meters.

    Declaration
    [Min(0.1F)]
    public float minDistanceBetweenProbes
    Field Value
    Type Description
    Single

    minRendererVolumeSize

    Specifies the minimum bounding box volume of renderers to consider placing probes around.

    Declaration
    [Min(0F)]
    public float minRendererVolumeSize
    Field Value
    Type Description
    Single

    renderersLayerMask

    Layer mask filter for all renderers.

    Declaration
    public LayerMask renderersLayerMask
    Field Value
    Type Description
    LayerMask

    simplificationLevels

    How many levels contains the probes hierarchical structure.

    Declaration
    [Range(2F, 5F)]
    public int simplificationLevels
    Field Value
    Type Description
    Int32

    Properties

    cellSizeInBricks

    The size of a Cell in number of bricks.

    Declaration
    public int cellSizeInBricks { get; }
    Property Value
    Type Description
    Int32

    cellSizeInMeters

    Size of the cell in meters.

    Declaration
    public float cellSizeInMeters { get; }
    Property Value
    Type Description
    Single

    lightingScenarios

    The list of lighting scenarios.

    Declaration
    public IReadOnlyList<string> lightingScenarios { get; }
    Property Value
    Type Description
    IReadOnlyList<String>

    maxSubdivision

    Maximum subdivision in the structure.

    Declaration
    public int maxSubdivision { get; }
    Property Value
    Type Description
    Int32

    minBrickSize

    Minimum size of a brick in meters.

    Declaration
    public float minBrickSize { get; }
    Property Value
    Type Description
    Single

    sceneGUIDs

    The list of scene GUIDs.

    Declaration
    public IReadOnlyList<string> sceneGUIDs { get; }
    Property Value
    Type Description
    IReadOnlyList<String>

    Methods

    IsEquivalent(ProbeVolumeBakingSet)

    Determines if the Probe Reference Volume Profile is equivalent to another one.

    Declaration
    public bool IsEquivalent(ProbeVolumeBakingSet otherProfile)
    Parameters
    Type Name Description
    ProbeVolumeBakingSet otherProfile

    The profile to compare with.

    Returns
    Type Description
    Boolean

    Whether the Probe Reference Volume Profile is equivalent to another one.

    RemoveScene(String)

    Removes a scene from the baking set.

    Declaration
    public void RemoveScene(string guid)
    Parameters
    Type Name Description
    String guid

    The GUID of the scene to remove.

    SetSceneBaking(String, Boolean)

    Changes the baking status of a scene. Objects in scenes disabled for baking will still contribute to lighting for other scenes.

    Declaration
    public void SetSceneBaking(string guid, bool enableForBaking)
    Parameters
    Type Name Description
    String guid

    The GUID of the scene to remove.

    Boolean enableForBaking

    Wheter or not this scene should be included when baking lighting.

    TryAddScenario(String)

    Tries to add a lighting scenario to the baking set.

    Declaration
    public bool TryAddScenario(string name)
    Parameters
    Type Name Description
    String name

    The name of the scenario to add.

    Returns
    Type Description
    Boolean

    Whether the scenario was successfully created.

    TryAddScene(String)

    Tries to add a scene to the baking set.

    Declaration
    public bool TryAddScene(string guid)
    Parameters
    Type Name Description
    String guid

    The GUID of the scene to add.

    Returns
    Type Description
    Boolean

    Whether the scene was successfull added to the baking set.

    Explicit Interface Implementations

    ISerializationCallbackReceiver.OnAfterDeserialize()

    Called after deserializing

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

    ISerializationCallbackReceiver.OnBeforeSerialize()

    Called before serializing

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

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    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 08 September 2023