@hbkmadness wrote:
Hi,
I have a custom class that is set in the properties of on 1 of the nodes in Cocos Studio.
Every time I make object of this class I use dynamic_cast like this:
CustomClass* actor = dynamic_cast<CustomClass*>(CSLoader::createNode("CustomClassNode.csb"));
But my problem is that I have a class that inherits from CustomClass, my question is how do I make the constructor of that class using the properties that are set in the .csb file?
Posts: 1
Participants: 1