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

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

871. 官网的api有点看不懂,onClosed这个方法怎么调用啊 [ 57%]

...js和As3写的。 关于dialog组件,关闭后的事件 _this.onClosed(function () { console.log("动画关闭后的请求") })this指向dialog,但是点击空白区域触发不了,可以解答一下怎么调用么。 2018-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

872. 官网的物理引擎demo报错运行,但是报错了。 [ 57%]

...reate: options.mouse was undefined, options.element was undefined, may not function as expected   https://layaair.ldc.layabox.co ... gshot 2018-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来...

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

873. 加载.atlas动画错误 [ 57%]

...s("http://10.10.20.58/chicken/res ... ot%3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya.stage.addChild(roleAni); roleAni.play(); }));     代码就这几行.... 2018-03-22 0 0 分享 微博 QZONE 微信 wdmingzi2 赞同来自: 只是单纯的调用加载接口  然后就加...

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

874. 如何将原生iframe嵌入某个节点,像addChild那样嵌入 [ 57%]

...入某个节点,像addChild那样嵌入 HallView.prototype.OnClickOneGou=function(){ this.frame=Laya.Browser.document.createElement("iframe"); this.frame.width=this.con.width; this.frame.height=850; this.frame.style.margin="0"; this.frame.style.padding="0"; this.frame.style.left="0"; this.frame.st...

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

875. native2.0压缩纹理如何使用 [ 57%]

...iaoman122 赞同来自: Laya.loader.load("res/1.pkm", Handler.create(null, function():void {     var spr:Sprite = new Sprite();     spr.loadImage("res/1.pkm");     spr.pos(100, 100);     Laya.stage.addChild(spr); }), null, Loader.IMAGE); 附件就是tp转的图片,这个是加载的代码 ...

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

876. 批量创建图片后,怎样通过索引删除图片 [ 57%]

...,否则不销毁子节点。          */         public function destroy(destroyChild:Boolean = true):void {} 2018-06-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 刘禹_社区新零售+物业Saas服务 相关问...

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

877. 关于ResourceVersion的问题 [ 57%]

...sourceVersion相关代码如下: Laya.ResourceVersion.addVersionPrefix = function(originURL){     if (Laya.ResourceVersion.manifest && Laya.ResourceVersion.manifest[originURL])         return Laya.ResourceVersion.manifest[originURL];     return originURL; } 官方版本的代码在...

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

878. 2.0.2使用worker加载图片的问题 [ 57%]

...er.postMessage(url);`,然后 在worker.js中执行了这句话`onmessage=function(t){var e=t.data;switch(e.type){case"load":loadImage2(e)}};`,e=t.data,也就是上面postMessage中的url,是一个字符串,那么e.type是undefined,根本不会执行到loadImage2(e)。 附件 : --> Demo.r...

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

879. 多种碰撞器形状(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 57%]

...pescript Mesh.load("res/threeDimen/Physics/table.lm", Handler.create(this, function(mesh:Mesh):void { //....省略中间 //读取导出的桌子模型 var table:MeshSprite3D = scene.addChild(new MeshSprite3D(mesh)) as MeshSprite3D; //给桌子加刚体并且设置刚体属性 var rigidBody:Rigidbody...

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

880. Laya不能加载外部图片,原生canvas却可以? [ 57%]

...new Image() img.src="http://pic.qqtn.com/up/2016-11 ... 3B%3B img.onload = function(){     cxt.drawImage(img,0,0); }   在原生canvas支持能加载外部资源。然而在laya并不能支持加载外部图片 于是把laya用原生测试了下于是发送了报错。   附件 : --> 2017-06-02...

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