元編程參考文件

狀態機狀態

5 個節點

本頁內容 5

狀態機狀態

函數

此節點沒有文件說明。

簽名
狀態機狀態() -> State Machine State
StateMachineState StateMachineState()

返回

狀態機狀態State Machine State
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
狀態機狀態
所屬包
狀態機

所屬狀態機

函數

The machine this instance is running in. Set by the runtime when the state is constructed; null
only for an instance constructed outside a machine run.

簽名
所屬狀態機(State Machine State: State Machine State) -> State Machine
StateMachineApplication Machine(StateMachineState State Machine State)

參數

名稱型別預設值說明
State Machine StateState Machine State—

返回

結果State Machine
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
狀態機狀態
所屬包
狀態機

更新頻率

函數

How often the machine ticks this state's Update, in HERTZ (ticks per second). Default 60.
Settable at any time - the loop re-reads it every iteration - though "set it during Enter" is the
documented idiom. Values that are not positive finite numbers are read as the 60 Hz default.

簽名
更新頻率(State Machine State: State Machine State) -> 數字
double UpdateFrequency(StateMachineState State Machine State)

參數

名稱型別預設值說明
State Machine StateState Machine State—

返回

結果數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
狀態機狀態
所屬包
狀態機

設定更新頻率

函數

Sets how often this state's Update ticks, in hertz. The loop re-reads the frequency every tick, so
the change takes effect from the next tick on.

簽名
設定更新頻率
    State Machine State: State Machine State
    赫茲: 數字
void SetUpdateFrequency(
    StateMachineState State Machine State,
    double hertz)

參數

名稱型別預設值說明
State Machine StateState Machine State—
赫茲數字—Ticks per second.
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
狀態機狀態
所屬包
狀態機

停止

函數

Ends the machine: the loop stops after the callback that called this returns. No further state is
entered and the active state is not exited - stopping is an end, not a transition.

簽名
停止(State Machine State: State Machine State)
void Stop(StateMachineState State Machine State)

參數

名稱型別預設值說明
State Machine StateState Machine State—
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
狀態機狀態
所屬包
狀態機