docs.unity3d.com
    Show / Hide Table of Contents

    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 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
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023