unreal.RigVMFunction_ControlFlowTimer¶
- class unreal.RigVMFunction_ControlFlowTimer(execute_context: RigVMExecuteContext = [], reset: bool = False, speed: float = 0.0, duration: float = 0.0, repeats: bool = False, just_started: RigVMExecuteContext = [], is_running: RigVMExecuteContext = [], just_finished: RigVMExecuteContext = [], time: float = 0.0, ratio: float = 0.0, completed: RigVMExecuteContext = [])¶
Bases:
RigVMFunction_ControlFlowBaseExecutes the output branches based on a timer
C++ Source:
Plugin: RigVM
Module: RigVM
File: RigVMFunction_ControlFlow.h
Editor Properties: (see get_editor_property/set_editor_property)
completed(RigVMExecuteContext): [Read-Write] The execute flow to run every frame after all other branchesduration(float): [Read-Write] The duration in seconds the timer will take to completeexecute_context(RigVMExecuteContext): [Read-Write] The input execution pin to hook up to the graphis_running(RigVMExecuteContext): [Read-Write] The branch to run when the timer is runningjust_finished(RigVMExecuteContext): [Read-Write] The branch to run when the timer has just finishedjust_started(RigVMExecuteContext): [Read-Write] The branch to run when the timer has just startedratio(float): [Read-Write] The played back / accumulated time as a ratio of time / duration (0.0 - 1.0)repeats(bool): [Read-Write] A flag indicating if the timer is a one-shot or if it should repeat / loopreset(bool): [Read-Write] A flag to reset / restart the timerspeed(float): [Read-Write] The speed to apply to the played back timetime(float): [Read-Write] The played back / accumulated time in seconds
- property completed: RigVMExecuteContext¶
[Read-Only] The execute flow to run every frame after all other branches
- Type:
- property duration: float¶
[Read-Write] The duration in seconds the timer will take to complete
- Type:
(float)
- property execute_context: RigVMExecuteContext¶
[Read-Write] The input execution pin to hook up to the graph
- Type:
- property is_running: RigVMExecuteContext¶
[Read-Only] The branch to run when the timer is running
- Type:
- property just_finished: RigVMExecuteContext¶
[Read-Only] The branch to run when the timer has just finished
- Type:
- property just_started: RigVMExecuteContext¶
[Read-Only] The branch to run when the timer has just started
- Type:
- property ratio: float¶
[Read-Only] The played back / accumulated time as a ratio of time / duration (0.0 - 1.0)
- Type:
(float)