Struct LightmappingHDRP.BakeProbeOptions.TextureSize
Represents the size of a probe's baked texture.
Namespace: UnityEditor.Rendering.HighDefinition
Syntax
public struct TextureSize
Fields
customValue
The value used in the CustomValue mode.
Declaration
public int customValue
Field Value
Type | Description |
---|---|
Int32 |
mode
The method to use to determine the size of the baked texture.
Declaration
public LightmappingHDRP.BakeProbeOptions.TextureSize.Mode mode
Field Value
Type | Description |
---|---|
LightmappingHDRP.BakeProbeOptions.TextureSize.Mode |
Methods
Evaluate(HDProbe)
Evaluates a probe and gets the texture size to use for baking.
Declaration
public int Evaluate(HDProbe probe)
Parameters
Type | Name | Description |
---|---|---|
HDProbe | probe | The probe to get the texture size for. |
Returns
Type | Description |
---|---|
Int32 | Returns the size of the texture to use for the bake. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | When |
ArgumentOutOfRangeException | When mode has an invalid value. |
NewDefault()
Returns a LightmappingHDRP.BakeProbeOptions.TextureSize with default values.
Declaration
public static LightmappingHDRP.BakeProbeOptions.TextureSize NewDefault()
Returns
Type | Description |
---|---|
LightmappingHDRP.BakeProbeOptions.TextureSize | Returns a LightmappingHDRP.BakeProbeOptions.TextureSize with default values. |