Skip to main content

CCScene

CCScene

Cocos2D

brief CCScene is a subclass of CCNode that is used only as an abstract concept. CCScene and CCNode are almost identical with the difference that CCScene has it's anchor point (by default) at the center of the screen. Scenes have state management where they can serialize their state and have it reconstructed upon resurrection. It is a good practice to use and CCScene as the parent of all your nodes.

Inheritance: System.Object → Cocos2D.CCNode

Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}

Constructors

CCScene()

CCScene()()

Sets the anchor point to the middle of the scene but ignores the anchor for positioning.

Example

Properties

IsTransition(System.Boolean)

Returns false always unless this is a transition scene.

Methods

Init()

System.Boolean Init()()

Initialize this scene

Returns:
System.Boolean
Example