Class ProbeVolumeBakingSet
An Asset which holds a set of settings to use with a Probe Reference Volume.
Implements
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public sealed class ProbeVolumeBakingSet : ScriptableObject, ISerializationCallbackReceiver
Fields
minDistanceBetweenProbes
The minimum distance between two probes in meters.
Declaration
[Min(0.1)]
public float minDistanceBetweenProbes
Field Value
Type | Description |
---|---|
float |
minRendererVolumeSize
Specifies the minimum bounding box volume of renderers to consider placing probes around.
Declaration
[Min(0)]
public float minRendererVolumeSize
Field Value
Type | Description |
---|---|
float |
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(2, 5)]
public int simplificationLevels
Field Value
Type | Description |
---|---|
int |
Properties
cellSizeInBricks
The size of a Cell in number of bricks.
Declaration
public int cellSizeInBricks { get; }
Property Value
Type | Description |
---|---|
int |
cellSizeInMeters
Size of the cell in meters.
Declaration
public float cellSizeInMeters { get; }
Property Value
Type | Description |
---|---|
float |
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 |
---|---|
int |
minBrickSize
Minimum size of a brick in meters.
Declaration
public float minBrickSize { get; }
Property Value
Type | Description |
---|---|
float |
sceneGUIDs
The list of scene GUIDs.
Declaration
public IReadOnlyList<string> sceneGUIDs { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<string> |
Methods
DialogNoProbeVolumeInSetShown()
Declaration
public bool DialogNoProbeVolumeInSetShown()
Returns
Type | Description |
---|---|
bool |
GetDirectory(string, string)
Declaration
public static string GetDirectory(string scenePath, string sceneName)
Parameters
Type | Name | Description |
---|---|---|
string | scenePath | |
string | sceneName |
Returns
Type | Description |
---|---|
string |
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 |
---|---|
bool | 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. |
SetDialogNoProbeVolumeInSetShown(bool)
Declaration
public void SetDialogNoProbeVolumeInSetShown(bool value)
Parameters
Type | Name | Description |
---|---|---|
bool | value |
SetSceneBaking(string, bool)
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. |
bool | 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 |
---|---|
bool | 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 |
---|---|
bool | Whether the scene was successfull added to the baking set. |