docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum NearestMode

    Options for how to sample the nearest element in Resize when using InterpolationMode.NearestMode.

    Namespace: Unity.Sentis.Layers
    Assembly: Unity.Sentis.dll
    Syntax
    public enum NearestMode

    Fields

    Name Description
    Ceil

    Use rounding up to the next integer coordinate greater than or equal to the input coordinate.

    Floor

    Use rounding down to the next integer coordinate less than or equal to the input coordinate.

    RoundPreferCeil

    Use rounding to the nearest integer coordinate. If the fractional part equals 0.5 then round up.

    RoundPreferFloor

    Use rounding to the nearest integer coordinate. If the fractional part equals 0.5 then round down.

    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)