大约有 744 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
Laya_社区(536) Laya2.0_文档(76) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(24) Laya3.0_api(19) laya_api(1) Laya2.0_api(1)
...ctor3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticMo...
来源: Laya_示例 发布时间: 20251130
...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(ApePath, Handler.create(this, this.setup)); } setup() { this.createApe(); this.showDragRegion(); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(ApePath)...
来源: Laya2.0_示例 发布时间: 20251130
...在移动浏览器就显示不了。我在项目启动之初使用了Laya.loader.load预加载字体,PC浏览器日志显示字体被加载了,移动浏览器有报错。 Laya.loader.load({ url: respath.font_SemiBold, type: Laya.Loader.TTF }, Laya.Handler.create(this, (obj: object) => {...
来源: Laya_社区 发布时间: 20250616
请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 如题,API上并没有明确标出。看这两个Loader所在的包名net,好像是都支持网络资源的加载,但atlas和png放在网络服务器同...
来源: Laya_社区 发布时间: 20180528
同时加载多个.js文件 Laya.loader.load("js/daTing.js", Handler.create(this, onAssetLoadedDT), null, Loader.TEXT); 同时加载多个么? 2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - ...
来源: Laya_社区 发布时间: 20171017
有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 在电脑上Loader预加载方法都很正常 但是一旦打包成APK安装到手机上 有时会发生异常 Laya.loader.load(skins, Laya.Handler.create(this, fGameLoad), Laya.Handler.create(this, onLoading, ...
来源: Laya_社区 发布时间: 20161228
...gba(0,0,0,0.1)"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 ...
来源: Laya_社区 发布时间: 20190217
...1).png", "res/ui/radioButton (2).png", "res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, this.initRadioGroups)); } initRadioGroups() { for (let i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MI...
来源: Laya2.0_示例 发布时间: 20251130
.../../res/ui/radioButton (2).png", "../../res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, initRadioGroups)); })(); function initRadioGroups() { for (var i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage....
来源: Laya_示例 发布时间: 20251130
load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20170719