Reply To: Calling child class method from object type Node

Forums 💬 NodeCanvas ⚙️ Support Calling child class method from object type Node Reply To: Calling child class method from object type Node

#17460
anonymous
Participant

    I figured it out!

    I didn’t see node is type ActionNode. So I casted it into ActionNode and then took the action and casted it into I2Say, which is deriving from ActionTask:

    ActionNode an = (ActionNode)node;
    I2Say say = (I2Say)an.action;
    say.RemoveTermReference();