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

大约有 2,930 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0064 秒)

601. 是不BMFONT不支持多类型资源加载方式? [ 73%]

...式? var assets = []; assets.push( { url: "res/fontWord.fnt", type: Laya.Loader.FONT }); Laya.loader.load(assets, Laya.Handler.create(this, onAssetsLoaded)); function onAssetsLoaded(){ var bitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/fontWord.fnt"); //必出错 }     只要使用...

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

602. 滤镜-发光滤镜 [ 73%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture =...

来源: Laya2.0_示例 发布时间: 20241001

603. https webSocket要怎么使用 [ 73%]

...么使用 https webSocket要怎么使用 Mixed Content: The page at ' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws:     Uncaught DOMException: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HT...

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

604. 将字节数组转为图片 [ 73%]

...yte layaAir端加载了img.byte文件后如何还原为图片?flash端的loader有个loadBytes方法可以加载字节数组,但是layaAir端没有相关方法实现 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

605. Sprite-显示图片 [ 73%]

...s/monkey1.png", monkey2Path = "./res/apes/monkey2.png"; // 方法1:使用loadImage let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.loadImage(monkey1Path); // 方法2:使用drawTexture Laya.loader.load(monkey2Path, Laya.Handler.create(this, function () { let monkey2 = Laya.loader.getRe...

来源: Laya2.0_示例 发布时间: 20241001

606. 3D模型加载出错 [ 73%]

...te3D(Laya.PrimitiveMesh.createBox(1, 1, 1)));         Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){         //Laya.Sprite3D.load("res/layatest.lh",Laya.Handler.create(null, function(sp){             this.box=sc...

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

607. 如何显示动画ani [ 73%]

...成了.ani 文件,可是怎么在主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。   代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import...

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

608. 谁能给个位图例子? [ 73%]

...个位图例子? 照着官方的例子抄的,却报错了。 Failed to load: laya/assets/comp/moeny.fnt Retry to load: comp/font/moeny.fnt 谁给个例子我看看?? 2017-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

609. UI-ProgressBar [ 73%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["../../res/ui/progressBar.png", "../../res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("../../res/ui/progressBar.png"); progres...

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

610. INSTALL_FAILED_NO_MATCHING_ABIS [ 73%]

...叠 要回复问题请先登录 发起人 kukucck 相关问题 Failed to load resource: net::ERR_FILE_NOT_FOUND httprequest ios手机上请求提示Request failed status:0 Array buffer allocation failed Failed to execute 'texImage2D怎么处理? WebSocket connection to 'ws://192.168.0.8:8102/' fai...

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