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

大约有 1,218 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)

551. at api readFile fail callback function [ 65%]

...I:loadAnimation 加载并播放动画问题 layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 layair 两点之间的距离api在哪里 官方的API为什么找不到pivot和pos? 问题状态 最新活动: 2018-08-14 10:39 浏览: 1465 关注: 2 人 lh480750...

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

552. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 65%]

...相关的链接 提交 2 个回复 金风 赞同来自: this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler); this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRequest.url, this.c...

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

553. 引擎加载动画过程中断网,动画还会继续加载吗? [ 65%]

...过程中断网,动画还会继续加载吗? 引擎加载动画完成的 event.complet 事件,在加载动画过程中断网,然后重连网络后,该事件一直没有被触发?请问有什么解决方案吗? 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

554. UI 控件多次调用 RESIZE 回调问题 [ 64%]

...var a = new Laya.Box(); a.left = a.top = a.right = a.bottom = 0; a.on(Laya.Event.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测试代码如上,每1s会回调一次控件 ...

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

555. 分享:Panel下动态修改子容器宽高并刷新显示! [ 64%]

...宽高并刷新显示! package { import laya.display.Sprite; import laya.events.Event; import laya.ui.Button; import laya.ui.Panel; import laya.utils.Browser; import laya.utils.Handler; public class LayaUISample { public function LayaUISample() { // 不支持WebGL时自动切换至Canvas Laya.init...

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

556. 关于UI与3D场景的问题 [ 64%]

...相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: button.on(Laya.Event.CLICK, this, function(event:Laya.Event){ console.log("点击到了UI"); event.stopPropagation(); }); 完整代码 2018-05-30 0 17 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你这个问题描述的很明确,...

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

557. [求助]无法使用loader预先加载 [ 64%]

...Handler.create(this, onLoading, null, false), Loader.TEXT); Laya.loader.on(Event.ERROR, this, onError);   private function onAssetLoaded(texture:Texture):void{             //console.log("111: ");                          txt.visible=false;            ...

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

558. 绘制图形的BUG [ 64%]

...ight; } } } BUG2:package ui.test { import laya.display.Sprite; import laya.events.Event; public class MyBox1 extends Sprite { private var _sprite:Sprite; public function MyBox1() { super(); _sprite=new Sprite(); //这里明明传入了尺寸,为什么graphics没有宽高信息 _sprite.graphics.dra...

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

559. Laya的Dialog上如果有按钮 我希望点击到按钮或者其他可以相应的控件 不会触发拖动效果 [ 64%]

...rag:boolean) { this.m_CanDrag = canDrag; if(this.m_CanDrag) { this.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } else { this.off(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } }  onMouseDown(e: Laya.Event) { // console.log(e.currentTarget, e.target); if(e.target == this) { this.startDrag(...

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

560. laya.d3.core.material.Material_API3.0 [ 64%]

...tCreateURL _setGPUMemory addDefine clone cloneTo destroy effectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getText...

来源: Laya3.0_api 发布时间: 20231115