大约有 1,013 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)
...der.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (im...
来源: Laya_社区 发布时间: 20191122
..."comp/skeleton/spineboy.sk"); } protected onExit() {}; private onError() { console.log("parse error"); } private parseComplete() { //从动画模板创建动画播放对象 let hero = this.templet.buildArmature(1); hero.pos(200, 0); //切换动画皮肤 hero.showSkinByIndex(0); //播放 hero.play(0,...
来源: Laya_社区 发布时间: 20180905
...re 赞同来自: 自己研究中,好像是物理没有开启导致的, console.log(Laya3D.enbalePhysics);结果是false 问题是怎么开启物理?看源码这个enablePhysics是根据是否存在window.Physics3D而设置的。 那么问题是怎么让window.Physics3D存在呢? 文档没找...
来源: Laya_社区 发布时间: 20190321
...'>HTML文本</span>"; html += "</div>"; p.innerHTML = html; console.log(p.contextHeight) } function showExternalHTML() { var p = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "../../res/html/test.html"; p.y = 200; } })(); 2017-05-16 0 0 分享 微博 QZONE 微信 cuixueyin...
来源: Laya_社区 发布时间: 20170515
...Child(comboBox); return comboBox; } private onSelect(cb: ComboBox): void { console.log("选中了: " + cb.selectedLabel); } } } new laya.UI_ComboBox(); ```
来源: Laya2.0_文档 发布时间: 20210715
...se); //0.1秒后删除 Laya.timer.once(100, null, Wipe); function Wipe() { console.log(other._owner); //移除自己 other._owner.removeSelf(); return; } } else { var move1 = new Laya.Vector3(0.02, 0, 0); var move2 = new Laya.Vector3(-0.02, 0, 0); Laya.timer.once(0, null, Right); Laya.timer.once(50,...
来源: Laya_社区 发布时间: 20181017
...解的,clear 即会停止掉该行为的执行 [i] } public b(i:number) { console.log("b " + i); }[/i] 然后我看了一下源码 laya.core.js 中 Timer 类中的相关函数, clear函数只清楚了一个Handler,并没有把其他相同Handler一起清除。 相关源码如下:[i] clear(ca...
来源: Laya_社区 发布时间: 20200819
...EY_DOWN,LayaSample,Test); } function Test(e){ console.log(e.keycode); } 按下按键后一直输出undefined,在入口类里面却能输出对应按键编号,是什么原因呢 2018-02-08 添加评论 免费帖 --> 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20180208
...ll, index) { cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })(); 2018-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自...
来源: Laya_社区 发布时间: 20180731
...e.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } } new laya.UI_RadioGroup();package { import laya.display.Stage; import laya.ui.RadioGroup; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_RadioG...
来源: Laya_示例 发布时间: 20241002