docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DefaultDestinationTemplate

    Represents a default destination template for navigation within the application.

    Inheritance
    object
    NavDestinationTemplate
    DefaultDestinationTemplate
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.Navigation
    Assembly: Unity.AppUI.Navigation.dll
    Syntax
    [Serializable]
    public class DefaultDestinationTemplate : NavDestinationTemplate

    Properties

    showAppBar

    Weathers or not to show the app bar when navigating to this destination.

    Declaration
    public bool showAppBar { get; set; }
    Property Value
    Type Description
    bool
    See Also
    NavigationScreen
    NavDestinationTemplate

    showBackButton

    Weathers or not to show the back button when navigating to this destination.

    Declaration
    public bool showBackButton { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    This property is ignored if showAppBar is false.

    See Also
    NavigationScreen
    NavDestinationTemplate

    showBottomNavBar

    Weathers or not to show the bottom navigation bar when navigating to this destination.

    Declaration
    public bool showBottomNavBar { get; set; }
    Property Value
    Type Description
    bool
    See Also
    NavigationScreen
    NavDestinationTemplate

    showDrawer

    Weathers or not to show the drawer when navigating to this destination.

    Declaration
    public bool showDrawer { get; set; }
    Property Value
    Type Description
    bool
    See Also
    NavigationScreen
    NavDestinationTemplate

    showNavigationRail

    Weathers or not to show the navigation rail when navigating to this destination.

    Declaration
    public bool showNavigationRail { get; set; }
    Property Value
    Type Description
    bool
    See Also
    NavigationScreen
    NavDestinationTemplate

    template

    The type of screen to use when navigating to this destination.

    Declaration
    public string template { get; set; }
    Property Value
    Type Description
    string
    See Also
    NavigationScreen
    NavDestinationTemplate

    Methods

    CreateScreen(NavHost)

    Creates a new instance of the navigation screen defined by this template.

    Declaration
    public override INavigationScreen CreateScreen(NavHost host)
    Parameters
    Type Name Description
    NavHost host

    The navigation host that will manage the screen.

    Returns
    Type Description
    INavigationScreen

    An instance of the navigation screen defined by this template.

    Overrides
    NavDestinationTemplate.CreateScreen(NavHost)
    Remarks

    The returned screen should be a subclass of VisualElement.

    See Also
    NavigationScreen
    NavDestinationTemplate

    See Also

    NavigationScreen
    NavDestinationTemplate
    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)