cocos creator 的几个变量显示写法

@property

Node: Node = null;

@property(Node)

Node: Node = null;

@property(Node)

Nodes: Node[] = [];

@property({type:Node})

Node1: Node[] =[];

@property({ type: Number, displayName: "速度" })

Speed: number = 5;//速度

@property({ type: String, displayName: "目标位置名称" })

Name: string = "DestPos";

@property({ type: Number, group: { name: "参数", id: "1" } })

power: number = 3;

@property({ type: Number, tooltip: "敌人移动速度" })

moveSpeed: number = 1.5;

相关推荐
weixin_409383129 天前
cocos shader闪光
游戏引擎·cocos2d
weixin_4093831210 天前
cocos shader三角流光
游戏引擎·cocos2d
weixin_4093831210 天前
cocos shader流光文字 不显示透明部分
游戏引擎·cocos2d
CodeCaptain17 天前
Cocos Creator 3.8.x 可对tiled 1.4.x进行的操作或分析有哪些
经验分享·游戏·typescript·cocos2d
CodeCaptain18 天前
CocosCreator3.8.x 解析Tiled1.4.x【瓦片图层、对象图层、图像图层、组图层】的核心原理
经验分享·游戏·typescript·cocos2d
wgc2k18 天前
从明码 CSV 到 AES 加密 TXT:Cocos3.8 游戏数据加密实践
cocos2d
CodeCaptain21 天前
Cocos Creator 3.8.0 官方文档明确支持 Tiled Editor v1.4 版本,也兼容 1.4.x 小版本(如1.4.3)
cocos2d
CodeCaptain21 天前
Cocos Creator3.8.0 Tiled地图三合一完整脚本(加载+兼容性校验+坐标互转,一键可用,适配Tiled1.4.x)
游戏·cocos2d
CodeCaptain21 天前
一个快速校验地图资源是否符合兼容要求的小脚本(Cocos Creator3.8.0)
游戏·typescript·cocos2d