createNode
fun <A> createNode(value: Lazy<A>, onUpdate: (Node<A>) -> A = { it -> it.rawValue }, onNextFrame: (Node<A>) -> Unit? = null, onRollback: (node: Node<A>, frame: Long) -> Unit? = null, label: String? = null): Node<A>(source)
Creates a new node without any parent / input nodes.
Typically this is used to construct input / "external" nodes to the timeline graph.
Parameters
value
Lazily initialized initial value of the node.
onUpdate
How to recompute the node when marked dirty.
onNextFrame
Optional action to perform on the frame immediately after a node is updated (typically used for events, to reset state to EventState.None)
onRollback
Action to perform when the state has been reset to a different frame during time travel (see TimeTravelDebugger).