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

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

1211. Templet资源删除不掉 [ 52%]

...er.BUFFER });             //   Laya.loader.load(assets, Handler.create(this, onAssetLoaded));             onAssetLoaded();         } 顺便问一下 你们的对于小图加载会自动加入大图集中去,一张满了就再加一张,这个大图集的重建是发生...

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

1212. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 52%]

...d(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));

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

1213. 预设/场景的导出(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 52%]

...景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComplete)); } /** * 加载完成 */ private onComplete(scene:Laya.Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): ![](img/2.png)(图2)

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

1214. 实例碰撞体报错,Cannot read property 'btSphereShape' of undefined [ 52%]

... Function.ClassUtils.getInstance (laya.core.js:9634)     at SceneLoader.create (laya.core.js:20746)     at EventHandler.__proto.run (laya.core.js:1111)     at SceneLoader.__proto.event (laya.core.js:882)     at SceneLoader.__proto._checkNext (laya.core.js:15729)     at SceneLoader.__p...

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

1215. image.drawToCanvas方法获取的一直是空的png [ 52%]

...L; Laya.stage.bgColor = "#232628"; Laya.loader.load("res/logo.png",Handler.create(this,onLoaded)); } private function onLoaded():void { img=new Image(); img.skin="res/logo.png"; Laya.stage.addChild(img); Laya.timer.once(500,this,onClick); //Laya.stage.on(Event.CLICK,this,onClick); } private function...

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

1216. Sprite中的width,height和size(width,height)感觉没作用啊 [ 52%]

... new laya.display.Sprite(); sprite.loadImage("comp/bg.png",0,0,0,0,Handler.create(this,function(texture:laya.resource.Texture){         sprite.graphics.clear();         sprite.graphics.drawTexture(texture,0,0,50,50);         sprite.autoSize = true; })); Laya.stage.addChild(sprite);...

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

1217. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 52%]

...ad([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

1218. 微信小游戏设置网络动态加载无法显示 [ 52%]

...ame.png", type:Laya.Loader.IMAGE });  Laya.loader.load(asset,Laya.Handler.create(this,loadingCallback),null);  用Chrome调试可以显示,用Layaair调试报 [warn]Retry to load: res/atlas/bubbles.atlas [warn]Retry to load: res/atlas/game.atlas [warn]Retry to load: game/bgGame.png在微信开...

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

1219. matter刚体穿越 [ 52%]

...自: 初始化物理引擎的时候直接设置不能睡眠试试 Engine.create(             {                 enableSleeping: false                          });    或者看一下位置初始化用得对不对,不要直接设置坐标,要调...

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

1220. 被遮罩的显示对象的子显示对象再添加遮罩,则子显示对象显示不正确 [ 52%]

...k = imgMask; Laya.Tween.to(this.img, {x:100}, 10000).update = Laya.Handler.create(this, this.updateMsk, null, false); } private updateMsk():void { this.img.mask.graphics.clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffffff"); } 附件 : --> LayaTest.rar 201...

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