CCScene Class Reference
Inherits from | CCNode : CCResponder : NSObject |
---|---|
Declared in | CCScene.h |
Overview
CCScene is a subclass of CCNode. The scene represents the root node of the node hierarchy.
A scene is created using the default node initializer:
id scene = [CCScene node];
Note: In previous versions of Cocos2D, CCLayer was used to group nodes in a CCScene. In v3 but also in v2 before that, you can simply use a CCNode to group other nodes.
Accessing Lights
lights
A collection of lights in the scene.
@property (nonatomic, readonly, strong) CCLightCollection *lights
Availability
v3.4 and later
Declared In
CCScene.h