大约有 1,588 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1115) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(52) Laya3.0_api(11) Laya2.0_api(2)
...文档中有这样的说明。 我现在是用Laya.SoundManager.playMusic("res/sound/bg.mp3");循环播放mp3的背景音,用Laya.SoundManager.playSound("res/sound/over.wav");单次播放多个wav特效音,但是同一时间依然只有一个音效。一开始是mp3背景音,当触发第一个...
来源: Laya_社区 发布时间: 20170202
...小于等于0的值将会限制字符数量为100000 限制输入的字符 restrict 限制输入的字符,在TextInput里只能输入这些。不建议开启,适用于简单的文本,不支持反斜杠 提示符 prompt 输入前的提示文本 提示符颜色 promptcolor 提示文本的颜色 ...
来源: Laya3.0_文档 发布时间: 20251010
...显示longtime 。。在断点的情况下。 Laya.loader.load([{url: "res/atlas/longCard.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 在onLoaded var textrue = Laya.loader.getRes(longcard/xxx.png)总是undedined。。。求解。。。 相关链接 : http://ask.layabox.com/qu...
来源: Laya_社区 发布时间: 20170306
...击`保存`,存到**项目目录内**(本例为`项目根目录\bin\h5\res\TiledMap\`),如图3所示。  (图3) ### 1.3 修改图集路径和复制Tiled资源 ##### 只是存为json文件还不够,我们还要更改image绝对路径为相对路径。 我们通过IDE,打...
来源: Laya2.0_文档 发布时间: 20210715
...的链接 提交 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("res/atlas/test0.png"); ape = new Sprite(); var matrix:Matrix = new Matrix(); matrix.a = -1; ...
来源: Laya_社区 发布时间: 20170221
... Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res)=>{ this.img.texture = res; })); 这样一来,不同的平台就需要使用不同的编程方式就大大降低了易用性,加大了不同平台耦合度。 最为致命的是,...
来源: Laya_社区 发布时间: 20220919
...=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel...
来源: Laya2.0_文档 发布时间: 20210714
...a.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter....
来源: Laya_示例 发布时间: 20260303
...tion.createFrames(["xxx/enemy.png"],"enemy_fly");文件路径: bin > res > atlas > xxx.atlas 操作对象: xxx.atlas "enemy1.png": { "frame": { "h": 145, "idx": 0, "w": 156, "x": 1150, "y": 292 }, "rotated": false, "sourceSize": { "h": 145, "w": 156 }, "spriteSourceSize": { "h": 145...
来源: Laya_社区 发布时间: 20180122
...查看得到 Laya.Loader.loaderMap 中的映射是有问题的,就是 res/protobuf/client_message.proto 和 res/uieffect/skeleton/jingyu.sk 的值都是同一个 ArrayBuffer 对象, 也就是比较后面加载的 .proto 文件资源被映射到了 jingyu.sk 文件了。 可以看到...
来源: Laya_社区 发布时间: 20180328