Forum

Objects instantiated in OnInit does not work in OnTick

Hello all. I have 3 objects instantiated from a class in OnInit and I need to use these Objects in OnTick too, However without instantiating them again in OnTick it is not possible. I have tried passing them by reference to OnTIck and that did not work either(in this case the OnTick function does

inputs in a class constructor

Hello everyone I want to write a class witch in its constructor I want to have inputs, I can't simply write: private: input int period; that throws an error and also when trying to use a setter in the class constructor I can't use input either. anyone got any idea