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

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

731. 背景音乐文件太大 播放延迟 [ 70%]

...音乐文件太大 播放延迟 Laya   背景音乐太大 预加载 Laya.loader.load 音乐   Laya.SoundManager.playMusic 播放 会出现延迟效果    Laya.loader.load(['remote/music/' + this.soundUrl + '.mp3'], new Laya.Handler(this, () => {                 thi...

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

732. .lh 文件不能在同一js文件内重复引用吗? [ 70%]

...个lh文件,打算复用。            var shelf0 = Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(shelf0);            shelf0.transform.translate(new Laya.Vector3(-4,1.2,35));            var shelf3 = Laya.Sprite3D.load("DoorShelf/shelf....

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

733. 还是克隆的问题 [ 70%]

还是克隆的问题 无论怎么更换变量,只要用LOAD加载过LH模型,都无法再出现新的同一个LH模型, 这实在太不方便。用了克隆,但是克隆后怎么可以把它换成别的LH文件?而不是LM或其它文件? 正常新建类,就可以产生一个新的...

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

734. Laya.URL.basePath 相关 [ 70%]

...aya.URL.basePath = "http://192.168.0.57:8901/bin/"; 之后调用Laya.Scene.load("/res/scene/Game.ls"); 这样写有没有问题? 如果没有问题,我想问为什么不能加载出来。如果我这样写则能加载出来 Laya.Scene.load("http://192.168.0.57:8901/bin/" + "/res/scene/Game.ls");...

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

735. 安卓上的百度小游戏,playMusic会出现多个背景音乐 [ 70%]

... H5_Gamker • 2020-06-23 19:52 只替换这个文件的话,会有资源load不上来,报错:[error]Failed to load: res/atlas/test.atlas H5_Gamker • 2020-06-23 19:55 是不是换了适配库之后外面有些调用会对不上 157*****593 • 2020-06-23 20:16 清理一下缓存 H5_Gamker •...

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

736. UI-Slider [ 70%]

...ins.push("../../res/ui/vslider.png", "../../res/ui/vslider$bar.png"); Laya.loader.load(skins, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { placeHSlider(); placeVSlider(); } function placeHSlider() { var hs = new HSlider(); hs.skin = "../../res/ui/hslider.png"; hs.width = ...

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

737. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 70%]

...的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.d...

来源: Laya2.0_文档 发布时间: 20210715

738. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 70%]

...Scene: the .lh file root type must be Scene,please use other function to  load  this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to  load  this file.     at MyScene.__proto.onAsynLoaded (http://127.0.0.1:59022/gam...

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

739. UI-Button [ 70%]

...VERTICAL_SPACING * (skins.length / COLUMNS - 1) - BUTTON_HEIGHT) / 2; Laya.loader.load(skins, Handler.create(this, this.onUIAssetsLoaded)); } onUIAssetsLoaded() { for (let i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage....

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

740. 资源回收的清理不干净的bug [ 70%]

...    var myscene = new Laya.Scene3D;         Laya.Sprite3D.load("Models/Ball.lh", Laya.Handler.create(this, function(sp){             for(var i=0; i<3; i++){                 var ball = myscene.addChild(sp.clone());                ...

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