docs.unity3d.com
    Show / Hide Table of Contents

    Class FocusControllerExtensions

    Extension methods for FocusController.

    Inheritance
    Object
    FocusControllerExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.AppUI.UI
    Syntax
    public static class FocusControllerExtensions

    Methods

    FocusNextInDirectionEx(FocusController, Focusable, FocusChangeDirection)

    Focus the next element in the given direction.

    Declaration
    public static Focusable FocusNextInDirectionEx(this FocusController controller, Focusable currentlyFocusedElement, FocusChangeDirection direction)
    Parameters
    Type Name Description
    FocusController controller

    The focus controller.

    Focusable currentlyFocusedElement

    The currently focused element.

    FocusChangeDirection direction

    The direction to focus.

    Returns
    Type Description
    Focusable

    The focused element.

    FocusNextInDirectionEx(FocusController, FocusChangeDirection)

    Focus the next element in the given direction.

    Declaration
    public static Focusable FocusNextInDirectionEx(this FocusController controller, FocusChangeDirection direction)
    Parameters
    Type Name Description
    FocusController controller

    The focus controller.

    FocusChangeDirection direction

    The direction to focus.

    Returns
    Type Description
    Focusable

    The focused element.

    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