@property多元素代理如何实现(如cc.Vec2)

要实现cc.Vec2这种有2个代理位置,需要用什么方式,我想要实现的对象数组每个元素需要2个代理
一个cc.Int 一个cc.Node

自己顶一下,,,,有人吗

@ccclass('YourType')
export class YourType {

    @property
    int: number = 0;

    @property(cc.Node)
    node: cc.Node = null;
}
@property(YourType)
types: YourType[] = [];
1赞