大约有 1,584 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
Laya_社区(1113) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(50) Laya3.0_api(11) Laya2.0_api(2)
...或运行中都会提示图片未找到,比如图片使用的资源是:res://318c6b25-05a2-47f5-8ce0-bcd0556ec848@hp_bg,底层转换后得到texture/battle/battle-ui/hp_bg.png,用这个URL去加载这个图片就会报图片未找到。 正确的逻辑应该是,首先加载res://318c6b2...
来源: Laya_社区 发布时间: 20240221
...比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过4M的话,只要能找到本地的资源,怎么写也没问题。 但是, 微信小游戏的本地包有4M的限制,一旦超过这个限...
来源: Laya2.0_文档 发布时间: 20210715
...么目录可以使用? 如下代码,我把hit.wav放在IDE的Scripts/res或是Assets/res目录?又或者是visual studio code里的src/res或者laya/assets里呢? Laya.SoundManager.playSound("res/hit.wav", 1, new Laya.Handler(this, this.onComplete)); 2020-08-27 添加评论 免费帖 -->...
来源: Laya_社区 发布时间: 20200827
...候 如何把当前场景下的资源销毁掉呢 Laya.loader.clearTextureRes("res/fighter.atlas") 这一步 销毁的是图集所保护的所有资源吗?还是说 需要 把所有用到的小图地址都销毁一遍 比如 Laya.loader.clearTextureRes("res/re1.jpg"); Laya.loader.clearTextureRes("...
来源: Laya_社区 发布时间: 20171122
...缓存 使用如下代码尝试缓存atlas文件Laya.ext.toCache = [ 'res/atlas/fonts.atlas', 'res/atlas/image/items.atlas', 'res/atlas/image/orb.atlas', 'animate/shiny.atlas', 'res/atlas/image/interface.atlas', 'animate/explosion.atlas', 'animate/mine.atlas', 'res/atlas/image/game.atlas', ] for(...
来源: Laya_社区 发布时间: 20180825
...调用微信JS的api 比如JS的wx.login({ success(res) { console.log(res); .. 用AS3要怎么写 已解决__JS__('wx.login({success (res) {console.log(res) }})'); 2019-09-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20190919
...ar Handler = Laya.Handler; var WebGL = Laya.WebGL; var buttonSkin = "../../res/ui/button-7.png"; var clipSkin = "../../res/ui/num0-9.png"; var bgSkin = "../../res/ui/coutDown.png"; var counter, currFrame, controller; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL);...
来源: Laya_示例 发布时间: 20251130
playSound和playMusic结束时候有异常抛出 1. loader加载了{url:"res/music/Music_start.mp3",type:Laya.Loader.SOUND}资源 2. 加载结束后,调用Laya.SoundManager.playSound("res/music/Music_start.mp3") 3. 声音播放完成后,系统抛出异常__proto._tryClearBuffer=function(sourceN...
来源: Laya_社区 发布时间: 20170105
...到东西 wx.getUserInfo({ withCredentials:false, lang: 'zh_CN', success: (res) => { console.log(res); // BigData.ins.user = res.data[0]; }, fail: () => { console.log("userInfo"+JSON.stringify("fail")); }, complete: () => { // console.log("userInfo"+JSON.stringify(selfData)); } Res打印出...
来源: Laya_社区 发布时间: 20190917
...ion setup() { var terminalX = 200; var characterA = createCharacter("../../res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB = createCharacter("../../res/cartoonCharacters/2.png"); characterB.pivot(34, 50); characterB.y = 250; Laya.stage.graphics.drawLine(...
来源: Laya_示例 发布时间: 20251130