
The type specified by the constructor is directly used as the cctype of the property. The type can be specified by the following parameters: The option type specifies the cctype of the property. Various characteristics of the ccattribute are specified by the ccproperty option parameter of property().

Similar to the ccclass, the ccattribute injects additional information to control the serialization of the property in Cocos Creator 3.0 and the display of the property in the editor. When the decorator property is applied to a property or accessor of the ccclass, this property is called a ccproperty. When the ccclass is a component class, Node can find the component by its ccclass name. During deserialization, the corresponding ccclass will be found for serialization based on this name. If the object is a cc object, the ccclass name of the object will be recorded during serialization. When you need the corresponding ccclass, you can find it by its ccclass name, for example: The option name specifies the name of the ccclass. Various characteristics of the ccclass are specified by the ccclass option parameter of ccclass(name). The ccclass injects additional information to control Cocos Creator 3.0's serialization of this kind of object along with the editor's display for these types of objects.

When the decorator ccclass is applied to a class, the class is called ccclass. Resource Management Considerations - meta files

Creating Animation Components and Animation Clipsīuild a Scene Image Using the Scene Panel
