From most of the descriptions I’ve read the reference count of a cocos2dx object created via a static create() function should be 0, such that if it isn’t added as a child or retained then it gets autoreleased before the next frame. However I’m seeing for cocos2d::Layer and others I quickly tested that the reference count is 1 and so they don’t get removed.
Is this behaviour expected, should I be seeing this?
I’m using 3.15, thanks.