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

! Can not instantiate CCClass with arguments

$
0
0

@eydamson wrote:

how can i make a cc.Class that has a constructor with arguments?..

// BaseTest
cc.Class({
    ctor (args)
    {
        // do something to args
    }
});

// Test
cc.Class({
    extends : BaseTest
    ctor (args)
    {
        // do something to args
        this._super(args);
    }
});

it gives me this warning Can not instantiate CCClass with arguments.
what is the fix for this? thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17115

Trending Articles



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