大约有 2,668 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0095 秒)
Laya_社区(2346) Laya2.0_文档(106) Laya3.0_文档(62) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...tElement.clientWidth * 2, document.documentElement.clientHeight * 2); Laya.loader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添...
来源: Laya_社区 发布时间: 20180817
...用ttf字体在小游戏中无效果 下边为使用位图字体,使用loader加载在小游戏中出错,同样使用了BitmapFont进行加载在小游戏中也出错(这两种方法在html5中都是可以正常运行) 下边为使用ttf字体,在web移动端都没有问题,但是小游戏...
来源: Laya_社区 发布时间: 20180410
...); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaM...
来源: Laya_示例 发布时间: 20260303
...题,我们内部又交流了一下,您在加载资源的时候应使用loader.load方法,而不是使用Texture.load,loader.load方法可以传入type参数来指定类型 Recovery • 2025-02-24 13:57 好的,实际我不会使用Texture.load方法,我遇到的是_getSource->recoverBi...
来源: Laya_社区 发布时间: 20250221
...A域名图片获取失败,导致图片不显示,什么原因 Laya.loader.load 方式预加载 附件 : --> 2017-09-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 方便给个例...
来源: Laya_社区 发布时间: 20170912
...ao Ss.png"); box.meshRender.material = material; Laya.loader.create("cj\cj-default001.lm",Laya.Handler.create(this,this.onCreateComplete)); function onCreateComplete() { var mesh = Laya.loader.getRes("cj\cj-default001.lm"); var meshSprite3D = new Laya.MeshSprite...
来源: Laya_社区 发布时间: 20180427
...后_referenceCount不会变成0,2.0版本是正常的可以变为0 Laya.loader.load('resources/UI/role/mxxxx.png', Laya.Loader.IMAGE).then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; Laya.stage.addChild(sp); setTimeout(() => { sp.destroy() }, 1000); });重现代码...
来源: Laya_社区 发布时间: 20231130
修复图片加载跨域问题 使用loader.load加载图片出现跨域问题; 看了laya.core.js源码发现图片是用Image对象加载,按道理应该不会出现,尝试去除crossOrigin=""; 发现不出现跨域问题,微信头像可以正常加载 注释掉下面这几行 line:1104...
来源: Laya_社区 发布时间: 20170204
...ion.createFrames([{ url: "res/atlas/actor/character/idle.json", type: Laya.Loader.ATLAS }], ActionType.MOVE_STAND); 异常信息如下: TypeError: url.indexOf is not a function at Function.URL.formatURL (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:4418:12) at Function.Loader....
来源: Laya_社区 发布时间: 20170206
...p=Sprite3D&name=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Handler.create(this, onComplete)); } ////完成回调 public function onComplete():void { //获取资源 var layaMonkey:Sprite3D = scene.addChild(Loader.getRe...
来源: Laya2.0_文档 发布时间: 20210715