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

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

181. 小游戏字体bug:使用位图字体,加载解析出错。使用ttf字体在小游戏中无效果 [ 67%]

...用ttf字体在小游戏中无效果 下边为使用位图字体,使用loader加载在小游戏中出错,同样使用了BitmapFont进行加载在小游戏中也出错(这两种方法在html5中都是可以正常运行) 下边为使用ttf字体,在web移动端都没有问题,但是小游戏...

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

182. [0]layaair2-cmd 编译bug [ 66%]

...les/graceful-fs/fs.js:1:37)     at Module._compile (internal/modules/cjs/loader.js:956:30)     at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)     at Module.load (internal/modules/cjs/loader.js:812:32)     at Function.Module._load (internal/modules/cjs/loader.js:724:...

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

183. laya.webgl.js调用_repaintSprite(),方法内部this.sprite为null [ 66%]

...yaNative ios上js访问不到JSBridge类中的方法,请求官方帮助, Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 调用原生js 改造原生调用 laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内...

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

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

...tage.scaleMode = Stage.SCALE_SHOWALL; 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.CLIC...

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

185. 引擎的text类中有没有直接读取Json文件的函数 [ 66%]

...享 微博 QZONE 微信 cuixueying 赞同来自: package { import laya.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():v...

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

186. 加载UI为什么总是加载白底 [ 66%]

...; //设置stage颜色s Laya.stage.bgColor = "#ffffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function st...

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

187. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 66%]

....js 在之前的基础上增加加载图片的代码://加载图片 Laya.loader.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoad...

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

188. Laya1.7.20如何加载3d资源? [ 66%]

...载速度慢 小游戏项目 加载有中文的json文件 报错 请问下loader如何强制加载一个文件,避免浏览器的缓存 本地调试加载本地图片都报错 模型资源释放问题 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 Animation ...

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

189. 声音放在CDN上,在微信无法播放 [ 66%]

...个回复 岁寒心 赞同来自: 发现了,不是加载不了,是Laya.loader.load()这个返回时,还没有加载成功。。。所以在他的回调中,不能播放 2020-04-20 0 1 分享 微博 QZONE 微信 176*****020 赞同来自: 解决了没 2020-07-11 0 0 分享 微博 QZONE 微信 L...

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

190. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 66%]

...文档的例子试了不行 // 程序入口 module laya {     import Loader = Laya.Loader;     import Handler = Laya.Handler;     export class Loader_MultipleType {         private ROBOT_DATA_PATH: string = "res/swf/star.swf"; private ROBOT_DATA_PATHS: string = "res/swf/star.json...

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