docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LightmappingHDRP

    Provides methods to help you with lightmapping in the High Definition Render Pipeline.

    Inheritance
    object
    LightmappingHDRP
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Editor.dll
    Syntax
    public static class LightmappingHDRP

    Methods

    BakeProbe(HDProbe, string, BakeProbeOptions)

    Bakes the probe and updates its baked texture.

    Note: The update of the probe is persistent only in editor mode.

    Declaration
    public static Exception BakeProbe(HDProbe probe, string path, LightmappingHDRP.BakeProbeOptions options)
    Parameters
    Type Name Description
    HDProbe probe

    The probe to bake.

    string path

    The asset path to write the baked texture to.

    LightmappingHDRP.BakeProbeOptions options

    The options to use for the bake.

    Returns
    Type Description
    Exception

    Returns null if successful. Otherwise, returns the error that occured. The error can be:

    • ArgumentException if the path is invalid.
    • ArgumentNullException if the probe is null.
    • Exception if the probe is not supported. Only This functional currently only supports HDAdditionalReflectionData probes.
    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)