docs.unity.cn
    Show / Hide Table of Contents

    Struct LightmappingHDRP.BakeProbeOptions.TextureSize

    Represents the size of a probe's baked texture.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    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 probe is null and the mode UseProbeResolution is used.

    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023