大约有 596 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0191 秒)
...lass() export class MsgRT extends MsgRTBase { onOpened(param: any): void { console.log(param.text); } } 这样,点击Scene场景中的Button,就会打印日志“点击成功!”,效果如动图2-3所示: (动图2-3) 2.3 关闭场景 1,关闭指定的场景 /** * 根据地址,关...
来源: Laya3.0_文档 发布时间: 20251010
...timer.loop(300, null, function () { console.log('8: ' + self.particleSystem.aliveParticleCount); }); } } } } 执行结果一直为0, 请问这是什么问题? 是否有更详细一些...
来源: Laya_社区 发布时间: 20170605
...r.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } 效果如图所示: (图3-1) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-16 18:53:02 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251016
... { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } class Item extends Laya.Box { static WID: number = 373; static HEI: number = 85; private img: Laya.Image; constructor() { super(); this.size(Item.WID, Item.HEI); this.img =...
来源: Laya3.0_文档 发布时间: 20251010
...e(0,0,800, 800),Handler.create(this,onMapLoaded)); function onMapLoaded(){ console.log("地图加载完成"); }scence1.json { "height":25, "infinite":false, "layers":[ { "data":[7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 1, 1, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,...
来源: Laya_社区 发布时间: 20180326
...ild(list);//将 list 添加到显示列表。 } function onSelect(index) { console.log("当前选择的项目索引: index= ", index); } example import List = laya.ui.List; import Handler = laya.utils.Handler; public class List_Example { public List_Example() { Laya.init(640, 800);//设置游戏...
来源: Laya3.0_api 发布时间: 20231115
...此时可以魔改一下 if (_inline) { yield updateDcc(); if (!isDccOk) { console.log("init dcc fail"); return; } } if( !(yield dj_hook.OnDccOk()) ) { if (window["onLayaInitError"]) { window["onLayaInitError"]("Update index error"); } return; } var data = yield asyncs.loadText(url); for (var n = 0;...
来源: Laya_社区 发布时间: 20190516
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 问题状态 最新活动: 2019-04-11 16:23 浏览: 6632 关注: 5 人 嘿哈 • 2018-08-30 16:30 我是这样理解的: 在主域里初始化Laya.Browser.w...
来源: Laya_社区 发布时间: 20180828
...此 vScrollBar 对象添加到显示列表。 } function onChange(value) { console.log("滚动条的位置: value=" + value); } example import VScrollBar = laya.ui.VScrollBar; import Handler = laya.utils.Handler; class VScrollBar_Example { private vScrollBar: VScrollBar; constructor() { Laya.init(...
来源: Laya3.0_api 发布时间: 20231115
...lider);//把 vSlider 添加到显示列表。 } function onChange(value) { console.log("滑块的位置: value=" + value); } example import HSlider = laya.ui.HSlider; import VSlider = laya.ui.VSlider; import Handler = laya.utils.Handler; class VSlider_Example { private vSlider: VSlider; constructo...
来源: Laya3.0_api 发布时间: 20231115