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

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

111. laya获取图片像素后重新设置回去带有透明像素的地方显示有问题 [ 64%]

...ss)         {             let tex:any = Laya.Loader.getRes("res/FGUIMain/Common_atlas0.png");              let x = tex.bitmap.getPixels();              console.log("------------------------",x);                          tex....

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

112. unity里导出的骨骼动画无法读取 [ 64%]

...画角色模型              var role3D:Sprite3D=Laya.loader.getRes("res/1.lh");              //加载到场景              scene.addChild(role3D);              role3D.once(Event.HIERARCHY_LOADED, this, function():void{                ...

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

113. 问一下这个问题要怎么改啊? [ 64%]

...showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } }   Main.as package { import laya.display.*; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import addPic; public class Main { privat...

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

114. 图片缺失怎么知道是哪张呢? [ 64%]

...etSkin(还没没加载完 -> 帧循环 update -> changeClips -> getRes没有B的skin资源就会打印 lose skin res id

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

115. 微信开放数据域(TypeScript-小游戏适配文档-微信小游戏) [ 63%]

...。 ```typescript onComplete() { //获取资源 var testJosn = Laya.loader.getRes("json/reward.json"); //输出透传过来的json console.log('透传的json信息:', testJosn); //加载IDE指定的场景 var big = new BigRank(); big.init(); } ``` 微信环境下测试,效果如图1: ![](img/1...

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

116. 游戏系怎么把一些共用的功能独立出来 [ 63%]

...(this, this.onLoading, null, false)); 3、注入JSvar js:any = Laya.loader.getRes("res/atlas/choujiang.js"); Browser.window.eval(js); 4、运行JS var ChouJiang = Browser.window.eval("模块名+类名"); var choujiang:any =  new ChouJiang(); choujiang.play(); 2018-05-25 0 1 分享 微博 QZONE 微...

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

117. 微信小游戏开放域(ActionScript-小游戏适配文档-微信小游戏) [ 63%]

...function onComplete():void() { //获取资源 var testJosn:* = Laya.loader.getRes("json/reward.json"); //输出透传过来的json console.log('透传的json信息:', testJosn); //加载IDE指定的场景 var big:BigRank = new BigRank(); big.init(); } ``` 微信环境下测试,效果如图1: !...

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

118. 微信小游戏开放域(JavaScript-小游戏适配文档-微信小游戏) [ 63%]

...。 ```typescript onComplete() { //获取资源 var testJosn = Laya.loader.getRes("json/reward.json"); //输出透传过来的json console.log('透传的json信息:', testJosn); //加载IDE指定的场景 var big = new BigRank(); big.init(); } ``` 微信环境下测试,效果如图1: ![](img/1...

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

119. 1.6.2打包的图集不能使用 [ 63%]

...}], Handler.create(this, onLoaded)); 在onLoaded var textrue = Laya.loader.getRes(longcard/xxx.png)总是undedined。。。求解。。。 相关链接 : http://ask.layabox.com/question/486 图集打包出来没有prefix。。。get了   2017-03-06 添加评论 免费帖 --> 分享 微博 QZONE...

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

120. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 63%]

...r.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     matrix.a = -1;     matrix.tx = 2*100+ t.width;     ape.graphics.drawTexture(t,100,100,t.width,t.height,matri...

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