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

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

221. drawToTexture 绘制函数不工作呢 [ 75%]

...信 宁远 赞同来自:         let tex = Laya.loader.getRes("res/atlas/test.png");         let img = new Laya.Sprite();         img.size(100,100);         img.x = 400;         img.y = 0;         img.graphics.drawTexture(tex,0,0,100,100);       ...

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

222. Animation创建和销毁的问题 [ 75%]

...estAnim2.removeSelf(); testAnim2 = null; Loader.clearRes("res/fish_1/stand.atlas", true); Loader.clearRes("res/fish_1/attack.atlas", true); trace("移除动画完成"); } } else if(event.keyCode === Keyboard.A) { //加载动画 Laya.loader.load(["res/fish_1/stand.atlas","res/fish_1/attack.atlas"], H...

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

223. 在 tiledmap 插入一个精灵在上面 [ 75%]

... init():void{   Laya.init(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); }   onLoaded(){   console.info("onLoaded");   this.tiledMap = new Laya.TiledMap();   this.tiledMap.createMap("desert.json", new Laya.Rec...

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

224. 模仿教程里的打地鼠写的代码,运行报错 [ 75%]

...色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var backgro...

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

225. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 75%]

...oad([ {url:"res/Public.fui",type:laya.net.Loader.BUFFER}, {url:"res/Public@atlas_ucn9w.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas_ucn90.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas0.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@sl4615.mp3",type:laya.net.Loader.SOUND} ]...

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

226. 动画节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 74%]

...示(如图2-9)。 (图2-9) 最终生成的图集文件为同名的.atlas文件和.png文件(role.atlas和role.png)。其中,.atlas是LayaAir IDE特有的图集格式,仅用于图集。 2.3 设置自动播放(autoPlay) autoPlay属性可以设置是否自动播放,默认为false...

来源: Laya3.0_文档 发布时间: 20251010

227. 关于用LayaAir引擎与IDE开发HTML5游戏的js注册页面(5)课件变动ui,编译后样式混乱问题 [ 74%]

...赞同来自: 这个问题是以前加载的是.json文件 现在改成了.atlas ​你要是不想改代码 f9改图片类型把代码里加载.json的改成.atlas 两种解决办法 不过推荐还是用.atlas 2018-01-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

228. Spine渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 74%]

...4.3 存在透明混合的显示差异问题4.4 不要主动加载Spine的atlas和pngSpine渲染器(Spine2DRenderNode) Author :Charley 1、Spine使用入门 Spine 是一款专业的 2D 骨骼动画工具,广泛应用于游戏开发。它采用骨骼驱动的动画方式,通过关键帧插...

来源: Laya3.0_文档 发布时间: 20260131

229. 性能测试-卡通人物 [ 74%]

...toonCharactors.json", Handler.create(this, createCharacters), null, Loader.ATLAS); })(); function createCharacters() { characterGroup = []; for(var i = 0; i = 0; --i) { animateCharactor(characterGroup[i]); } } function animateCharactor(charactor) { charactor.x += moveSpeed; charactor.rotation += rot...

来源: Laya_示例 发布时间: 20260303

230. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 74%]

...ion beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //...

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