docs.unity3d.com
Search Results for

    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.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Editor.dll
    Syntax
    public struct LightmappingHDRP.BakeProbeOptions.TextureSize

    Fields

    customValue

    The value used in the CustomValue mode.

    Declaration
    public int customValue
    Field Value
    Type Description
    int

    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
    int

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)