Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17118

C++ Inherit custom class

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 17118

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>