大约有 2 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0019 秒)
... class MyItem extends Laya.GButton { //注意!在onConstruct里才可以获取子对象,建议在这里做初始化,不要在构造函数里做初始化 onConstruct() { //this.xx = this.getChild("xx"); //this.xx.on(Laya.Event.CLICK, this, this.onClick); } sayHello() { console.log("Hello from M...
来源: Laya3.0_文档 发布时间: 20251128
...加好的Image拖入到@property暴露的Image属性入口中,这样就获取到了此节点,然后可以在脚本中使用代码控制Image的属性了。 (动图2-3) 代码中使用属性参考《组件属性的代码使用》。 2.5.2 自定义对象类型 自定义对象类型,就是...
来源: Laya3.0_文档 发布时间: 20251010