castIfAcceptsInput

Cast the node to given type if it accepts input using the given method.

In addition to performing a dynamic cast, this checks if the node currently accepts input. If it doesn't (for example, if the node is disabled), it will fail the cast.

@safe
inout(T)
castIfAcceptsInput
()
(
inout Object node
)

Parameters

node Object

Node to cast.

Return Value

Type: inout(T)

Node casted to the given type, or null if the node can't be casted, or it doesn't support given input method.

Meta