Skip to content
This repository was archived by the owner on Nov 12, 2026. It is now read-only.

Cocos Node Editor v1.2.4

Choose a tag to compare

@esengine esengine released this 24 Jul 05:07
· 16 commits to master since this release

修复 / Fixes

@BlueprintProperty 支持无 TS 类型注解的属性

此前属性扫描正则强制要求类型注解(name: Type),导致 current = 100
这类只靠装饰器 type 字段声明类型的属性匹配不到,不生成 Get/Set
节点,编辑器节点搜索里也找不到。

现在 @BlueprintProperty / @BlueprintInput / @BlueprintOutput 兼容三种写法:

  • current: number = 100(类型注解)
  • current = 100(无注解,类型取装饰器 type: 'float')
  • current(裸声明)

同时支持 readonly 修饰符。


@BlueprintProperty now supports properties without a TS type annotation

The scanner required a type annotation (name: Type), so current = 100 (type declared only via the decorator's type field) was skipped and produced no Get/Set nodes. Now @BlueprintProperty / @BlueprintInput / @BlueprintOutput accept name: Type, name = value, and bare name (plus readonly).

安装 / Install

解压 cocos-node-editor-v1.2.4.zip 到项目 extensions/ 目录并重启 Cocos Creator。
Extract into your project's extensions/ directory and restart Cocos Creator.