Class ClampingScrollSimulation | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ClampingScrollSimulation

    Inheritance
    System.Object
    Simulation
    ClampingScrollSimulation
    Inherited Members
    Simulation.tolerance
    Namespace: Unity.UIWidgets.widgets
    Syntax
    public class ClampingScrollSimulation : Simulation

    Constructors

    ClampingScrollSimulation(Single, Single, Single, Tolerance)

    Declaration
    public ClampingScrollSimulation(float position, float velocity, float friction = 0.015F, Tolerance tolerance = null)
    Parameters
    Type Name Description
    System.Single position
    System.Single velocity
    System.Single friction
    Tolerance tolerance

    Fields

    friction

    Declaration
    public readonly float friction
    Field Value
    Type Description
    System.Single

    position

    Declaration
    public readonly float position
    Field Value
    Type Description
    System.Single

    velocity

    Declaration
    public readonly float velocity
    Field Value
    Type Description
    System.Single

    Methods

    dx(Single)

    Declaration
    public override float dx(float time)
    Parameters
    Type Name Description
    System.Single time
    Returns
    Type Description
    System.Single
    Overrides
    Simulation.dx(Single)

    isDone(Single)

    Declaration
    public override bool isDone(float time)
    Parameters
    Type Name Description
    System.Single time
    Returns
    Type Description
    System.Boolean
    Overrides
    Simulation.isDone(Single)

    x(Single)

    Declaration
    public override float x(float time)
    Parameters
    Type Name Description
    System.Single time
    Returns
    Type Description
    System.Single
    Overrides
    Simulation.x(Single)
    Back to top
    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