I have a MainMenu with several sub-pages loaded as CCB files.
The MainMenu scene is loaded with [[CCBReader reader] loadWithData:... owner:owner] where owner is an instance of a custom class in my game.
Within MainMenu, each subpage file is assigned to an owner var in SpriteBuilder.
At runtime the set accessors for the subpage variables are invoked properly, but the value set is nil.
Up the call stack one level to -[CCBReader readNodeGraphParent:] CCBReader.m:1501, you can see the target and property have been found but node is nil:
This is an old Cocos 3.0 / SB 1.0.6 project that I've imported in to SB 1.4.9 and I'm attempting to port to Cocos 3.4. The game is built in Cocos and loads the SB files for the front end user interface programmatically. Obviously it worked in 3.0/1.0.6, but doesn't in 3.4/1.4.9
I have a MainMenu with several sub-pages loaded as CCB files.
The MainMenu scene is loaded with
[[CCBReader reader] loadWithData:... owner:owner]
whereowner
is an instance of a custom class in my game.Within MainMenu, each subpage file is assigned to an owner var in SpriteBuilder.
At runtime the set accessors for the subpage variables are invoked properly, but the value set is nil.
Up the call stack one level to
-[CCBReader readNodeGraphParent:] CCBReader.m:1501
, you can see the target and property have been found butnode
is nil:This is an old Cocos 3.0 / SB 1.0.6 project that I've imported in to SB 1.4.9 and I'm attempting to port to Cocos 3.4. The game is built in Cocos and loads the SB files for the front end user interface programmatically. Obviously it worked in 3.0/1.0.6, but doesn't in 3.4/1.4.9
SB Version: 1.4.9 SB Revision: eea568a5c7