docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class VisualFootprintGenerator

    This class provides methods to compute the visual footprint of an LODGroup by comparing the different LODs and applying transition levels.

    Inheritance
    object
    VisualFootprintGenerator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Pixyz.UnitySDK
    Assembly: Unity.Pixyz.UnitySDK.Editor.dll
    Syntax
    public static class VisualFootprintGenerator

    Methods

    Run(LODGroup, bool, uint, float)

    Compute the transition levels at which to switch between the different LODs for the given LODGroup

    Declaration
    public static float[] Run(LODGroup lodGroup, bool useHemisphere = true, uint resolution = 512, float threshold = 0.5)
    Parameters
    Type Name Description
    LODGroup lodGroup

    The LODGroup to compare

    bool useHemisphere

    If true, only compare views from the upper hemisphere instead of all directions

    uint resolution

    Resolution to use for the comparison images

    float threshold

    Threshold above which two pixels are considered different when comparing the image of a LOD to the image of another LOD

    Returns
    Type Description
    float[]

    The transition values to use for switching LODs

    RunAndApply(LODGroup, bool, uint, float)

    Compute and apply transition levels between the different LODs for the given LODGroup

    Declaration
    public static void RunAndApply(LODGroup lodGroup, bool useHemisphere = true, uint resolution = 512, float threshold = 0.5)
    Parameters
    Type Name Description
    LODGroup lodGroup

    The LODGroup to compare and modify

    bool useHemisphere

    If true, only compare views from the upper hemisphere instead of all directions

    uint resolution

    Resolution to use for the comparison images

    float threshold

    Threshold above which two pixels are considered different when comparing the image of a LOD to the image of another LOD

    In This Article
    Back to top
    Copyright © 2025 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)