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 ...)控制兩個或更多狀態(tài),用于需要在多個狀態(tài)中選擇一個的交互(如:標(biāo)簽欄)。只有兩種狀態(tài)一般用 [Switch] 模塊。
與 Option Picker 模塊一起使用,Option Picker 相當(dāng)于升級版 Transition 模塊,用來定義多個值。以前稱為 **Index Switch索引開關(guān) **。
右鍵增加更多狀態(tài)(即左側(cè)輸入口的數(shù)量)。查看 基礎(chǔ) - 狀態(tài) 了解更多信息。
輸入口
Set to 0 接口1
A pulse that sets the Option Switch to option 0.
第一個交互連接到這里。
Set to 1 接口2
A pulse that sets the Option Switch to option 1.
第二個交互連接到這里。
Set to 2 接口3
A pulse that sets the Option Switch to option 2.
第三個交互連接到這里。
輸出口
Option 輸出
An index that represents the state of the Option Switch.
輸出操作索引中的值。
板栗:連接到 Option Picker 模塊的 Option 輸入口。
Related Patches 相關(guān)模塊
Switch,Counter,Option Picker,Option Sender
Related Learn Content 教程
Timed Animations
Create time-based, automatic animations.
Multiple States 多個狀態(tài)
Interact with more than just two states.
超過兩個狀態(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.