Scripting
Cocos Creator scripts are used to implement user-defined (game) behaviors.
- Script Creation
- Script Basics
- Language Support
- Modules
- Script Execution Order
- ccclass
- Access Node and Other Components
- Commonly Used Nodes and Component Interfaces
- Lifecycle Callbacks
- Creating and Destroying Nodes
- Loading and Switching Scenes
- Obtaining and Loading Assets
- Scheduler
- Components and Component Order
- Event System
- Attribute Parameter Reference
- Plugin Script
- CCClass Advanced Reference
- Add Log
- Deprecated API
Events
As a very commonly used system in the engine, we provide a complete and efficient event system for developers to use. For details, please see: