10.13 Utility - Option Switch 選項(xiàng)開(kāi)關(guān)


Control two or more states using an index (0, 1, 2...). For two states, use Switch. Useful for tracking a state that is one of multiple options (ex: tab bar). Often used with Option Picker to select from two or more options. Formerly known as Index Switch.
Right-click to add additional states.
See State Basics for more information.

使用索引(0,1,2 ...)控制兩個(gè)或更多狀態(tài),用于需要在多個(gè)狀態(tài)中選擇一個(gè)的交互(如:標(biāo)簽欄)。只有兩種狀態(tài)一般用 [Switch] 模塊。

Option Picker 模塊一起使用,Option Picker 相當(dāng)于升級(jí)版 Transition 模塊,用來(lái)定義多個(gè)值。以前稱為 **Index Switch索引開(kāi)關(guān) **。
右鍵增加更多狀態(tài)(即左側(cè)輸入口的數(shù)量)。查看 基礎(chǔ) - 狀態(tài) 了解更多信息。

輸入口

Set to 0 接口1
A pulse that sets the Option Switch to option 0.
第一個(gè)交互連接到這里。

Set to 1 接口2
A pulse that sets the Option Switch to option 1.
第二個(gè)交互連接到這里。

Set to 2 接口3
A pulse that sets the Option Switch to option 2.
第三個(gè)交互連接到這里。

輸出口

Option 輸出
An index that represents the state of the Option Switch.
輸出操作索引中的值。
板栗:連接到 Option Picker 模塊的 Option 輸入口。


Related Patches 相關(guān)模塊

Switch,Counter,Option PickerOption Sender


Related Learn Content 教程

Timed Animations
Create time-based, automatic animations.

Multiple States 多個(gè)狀態(tài)
Interact with more than just two states.
超過(guò)兩個(gè)狀態(tài)的交互。


Related Examples

Facebook Live Comments
Automatically add comments in a Facebook Live video stream.

Moments Onboarding
The original Moments app full onboarding flow.

Traffic Light
Transition across three or more states and include logic.


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Interact with more than just two states. 超過(guò)兩個(gè)狀態(tài)的交互。 We ha...
    劉板栗閱讀 1,164評(píng)論 0 1
  • 關(guān)于position屬性 總述 position有5種屬性值,其中`inherit`表示從父元素繼承positio...
    吳大仙_a5ae閱讀 636評(píng)論 0 0
  • 等待小姑娘的心情就好像賣豬肉的壯漢在自家鋪?zhàn)娱T(mén)口眼巴巴瞅著別人送豬上門(mén),望眼欲穿。13號(hào)是粉色的,很舒服,沒(méi)那么少...
    花犯閱讀 248評(píng)論 0 0
  • 趁著中午的空 和老公見(jiàn)面 看一看想買(mǎi)的大書(shū)架 買(mǎi)了雪碧和酸奶 等公交車的時(shí)候用硬幣玩翻轉(zhuǎn)游戲 咯咯笑 不亦樂(lè)乎 五...
    Iris1212閱讀 197評(píng)論 0 0

友情鏈接更多精彩內(nèi)容