• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,013 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)

891. Laya中Button等组件lose skin的问题 [ 45%]

...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

892. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 45%]

..."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

893. 新手请问下如何开启Laya3D的physics [ 45%]

...re 赞同来自: 自己研究中,好像是物理没有开启导致的, console.log(Laya3D.enbalePhysics);结果是false 问题是怎么开启物理?看源码这个enablePhysics是根据是否存在window.Physics3D而设置的。 那么问题是怎么让window.Physics3D存在呢? 文档没找...

来源: Laya_社区 发布时间: 20190321

894. 使用HtmlDivElement取不到实际大小 [ 45%]

...'>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

895. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 45%]

...Child(comboBox); return comboBox; } private onSelect(cb: ComboBox): void { console.log("选中了: " + cb.selectedLabel); } } } new laya.UI_ComboBox(); ```

来源: Laya2.0_文档 发布时间: 20210715

896. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 45%]

...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

897. Laya.Timer.clear 的源码可能有个问题。 [ 45%]

...解的,clear 即会停止掉该行为的执行 [i] } public b(i:number) { console.log("b " + i); }[/i]  然后我看了一下源码 laya.core.js 中 Timer 类中的相关函数, clear函数只清楚了一个Handler,并没有把其他相同Handler一起清除。 相关源码如下:[i] clear(ca...

来源: Laya_社区 发布时间: 20200819

898. 我在Layasample主类中,检测键盘按下并输出一切正常,可是放到其他类里面则能检测到按键按下,却一直输出undefined [ 45%]

...EY_DOWN,LayaSample,Test);     }     function Test(e){         console.log(e.keycode);             }   按下按键后一直输出undefined,在入口类里面却能输出对应按键编号,是什么原因呢   2018-02-08 添加评论 免费帖 --> 分享 微博 QZONE 微信...

来源: Laya_社区 发布时间: 20180208

899. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 45%]

...ll, index) { cell.setImg(cell.dataSource); }   function onSelect(index) { console.log("当前选择的索引:" + index); } })(); 2018-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自...

来源: Laya_社区 发布时间: 20180731

900. UI-RadioGroup [ 45%]

...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