大约有 307 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)
Laya_社区(291) Laya3.0_文档(6) Laya3.0_api(3) Laya2.0_文档(3) laya_api(1) Laya_示例(1) Laya2.0_示例(1) Laya2.0_api(1)
...用ttf字体在小游戏中无效果 下边为使用位图字体,使用loader加载在小游戏中出错,同样使用了BitmapFont进行加载在小游戏中也出错(这两种方法在html5中都是可以正常运行) 下边为使用ttf字体,在web移动端都没有问题,但是小游戏...
来源: Laya_社区 发布时间: 20180410
...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
...yaNative ios上js访问不到JSBridge类中的方法,请求官方帮助, Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 调用原生js 改造原生调用 laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内...
来源: Laya_社区 发布时间: 20170920
...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
...享 微博 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
...; //设置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
....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
...载速度慢 小游戏项目 加载有中文的json文件 报错 请问下loader如何强制加载一个文件,避免浏览器的缓存 本地调试加载本地图片都报错 模型资源释放问题 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 Animation ...
来源: Laya_社区 发布时间: 20190515
...个回复 岁寒心 赞同来自: 发现了,不是加载不了,是Laya.loader.load()这个返回时,还没有加载成功。。。所以在他的回调中,不能播放 2020-04-20 0 1 分享 微博 QZONE 微信 176*****020 赞同来自: 解决了没 2020-07-11 0 0 分享 微博 QZONE 微信 L...
来源: Laya_社区 发布时间: 20200420
...文档的例子试了不行 // 程序入口 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