7. cocos3.x cocos3.6 set group attributes multiple properties

For example, if I want to have multiple weapons on a turret, then I can bind multiple weapons just like this

    /**武器组 */
    @property({
    
     type: Node, multiline: true })
    TheWeaponGroup: Node[] = [];

Then just set it here,
the main thing is to express it in the form of an array
insert image description here

Guess you like

Origin blog.csdn.net/Yourset/article/details/126446413