unity官方中对于toggle.navigation属性的解释如下:

链接:https://docs.unity3d.com/Manual/script-SelectableNavigation.html

Navigation Options

Property: Function:
Navigation The Navigation options refers to how the navigation of UI
elements in play mode will be controlled.
None No keyboard navigation. Also ensures that it does not receive focus from clicking/tapping on it.
Horizontal Navigates Horizontally.
Vertical Navigates Vertically.
Automatic Automatic Navigation.
Explicit In this mode you can explicitly specify where the control navigates to for different arrow keys.
Visualize Selecting Visualize gives you a visual representation of the navigation you have set up in the scene
window. See below.

Scene window showing the visualized navigation connections

In the above visualization mode, the arrows indicate how the change of focus is set up for the collection of controls as a group. That means - for each individual UI control - you can see which UI control will get focus next, if the user presses an arrow key when the given control has focus. So in the example shown above, If the “button” has focus and the user presses the right arrow key, the first (left-hand) vertical slider will then become focused. Note that the vertical sliders can’t be focused-away-from using up or down keys, because they control the value of the slider. The same is true of the horizontal sliders and the left/right arrow keys.

自己翻译了一下:

Navigation Options

Property: Function:
Navigation

导航选项指的是UI的导航方式

元素在播放模式将被控制。

None 没有键盘导航。还可以确保它不会因为点击/轻击而获得焦点。
Horizontal 横向导航
Vertical 纵向导航
Automatic 自动导航
Explicit 在此模式下,可以显式指定控件导航到不同箭头键的位置。
Visualize

选择Visualize将为您提供在场景中设置的导航的可视化表示

窗口。见下文。

显示可视化导航连接的场景窗口

在上面的可视化模式中,箭头表示如何为控件集合作为一个组设置焦点更改。这意味着——对于每个单独的UI控件——如果用户在给定控件有焦点时按下箭头键,就可以看到下一个将获得焦点的UI控件。因此,在上面的例子中,如果“按钮”有焦点,用户按下右箭头键,第一个(左)垂直滑块将成为焦点。请注意,垂直滑块不能使用向上或向下键进行对焦,因为它们控制滑块的值。水平滑块和左右箭头键也是如此。(自我理解:焦点可以理解为toggle组中当前选中的按钮)

如上所示,想要避免方向键对于toggle按钮的选择影响,应该把navigation选项设置为none

unity关闭方向键对于toggle按钮组的影响相关推荐

  1. 1.2文字排版、颜色、表格、图像形状、Jumbotron、信息提示框、按钮、按钮组、徽章、加载效果、分页、列表组、卡片、下拉菜单、折叠

    Bootstrap 5 默认设置 Bootstrap 5 默认的 font-size 为 16px, line-height 为 1.5. 此外,所有的 <p> 元素 margin-top ...

  2. Bootstrap图标、下拉菜单、按钮组、按钮式下拉菜单

    1.图标使用 <span class="glyphicon glyphicon-search" aria-hidden="true"></sp ...

  3. bootstrap中单个按钮、按钮组、徽章、进度条

    单按钮: 背景按钮:bootstrap提供了具有特殊意义背景的按钮样式,使用时只需给自己的按钮(button.input.a)加bootstrap提供的类名即可,其具体如下: 类名 描述 .btn 基 ...

  4. Bootstrap3基础 btn-group-vertical 按钮组(横着、竖着排列)

      内容 参数   OS   Windows 10 x64   browser   Firefox 65.0.2   framework     Bootstrap 3.3.7   editor    ...

  5. 微信小程序 自定义单选复选按钮组的实现(用于实现购物车产品列表功能)

    (一)单选按钮组 模型图如下: index.js Page({data: {parameter: [{ id: 1, name: '银色' }, { id: 2, name: '白色' },{ id: ...

  6. layer.open 模态弹窗, 隐藏关闭按钮, 隐藏按钮组

    let id = layer.open({id :"changePassLayer", // jqeury 方式, 需要指定弹窗idtype: 2,title: '修改密码',ar ...

  7. css搜索的文本框,一个很不错的CSS改写的大表单文本框和搜索按钮组

    <一个很不错的CSS改写的大表单文本框和搜索按钮组>要点: 本文介绍了一个很不错的CSS改写的大表单文本框和搜索按钮组,希望对您有用.如果有疑问,可以联系我们. 先看效果图: 开始爬取 C ...

  8. 吴裕雄 Bootstrap 前端框架开发——Bootstrap 按钮:按钮组

    <!DOCTYPE html> <html> <head><meta charset="utf-8"> <title>B ...

  9. Bootstrap 按钮组

    按钮组允许多个按钮被堆叠在同一行上.当你想要把按钮对齐在一起时,这就显得非常有用.您可以通过 Bootstrap 按钮(Button) 插件 添加可选的 JavaScript 单选框和复选框样式行为. ...

最新文章

  1. 卡尔曼滤波的优点总结
  2. chrome 适配调试_移动端适配
  3. 机器学习 感知机算法_0(Matlab实现)
  4. python项目部署到url_项目上线部署
  5. [Linux基础环境/软件]Linux下安装resin web服务器(涉及gcc、jdk环境部署)
  6. SQL Cookbook:一、检索记录(8)在SELECT语句中使用条件逻辑
  7. pythonclass全局变量_python的局部变量,全局变量,类变量,实例变量
  8. CSS提高需要关注的国外网站
  9. 使用函数自调用实现将局部变量转换成全局变量
  10. Databricks文档01----Azure Databricks初探
  11. pandas后几行_天秀!Pandas还能用来写爬虫?
  12. iTerm2 如何设置以单词为单位快速移动光标?
  13. 拓端tecdat|R语言解决最优化问题-线性规划(LP)问题
  14. screw 的postgresql数据库使用教程
  15. 一刀工具箱- 语音合成工具
  16. java多边形合并_碎多边形合并 | SuperMap iDesktop Java
  17. oracle FAQ
  18. Love Your Life》—— 热爱生活
  19. Linux文件系统之链接文件
  20. 如何用TL084制作低音炮电路

热门文章

  1. 权威发布 | 芝诺数据入围教育部高等教育司产学合作协同育人项目企业名单
  2. 干货 | “深耕内容”背景下,携程如何做景酒优质内容的挖掘
  3. 【Excel自动化办公Part3】:工作表的创建、删除、复制和修改名称,冻结窗格,添加筛选
  4. 【安卓开机启动】安卓JVM加载so库流程
  5. c语言课程设计--贪吃蛇
  6. bazel成功安装后,编译代码报错
  7. 牛客笔试OJ-在线编辑器输入输出总结
  8. 当程序员追求佛系,会发生什么……
  9. 重庆大学计算机学院百度百科,朱晓红(重庆大学计算机学院副教授)_百度百科...
  10. 借记来帐,借记往账,贷记来帐,贷记往账