大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0050 秒)
...ole.log("动画名:", this.skeleton.getAniNameByIndex(i)); } if (this.skeleton.getAnimNum() > 0){ if (this.skeleton["_renderType"] !== undefined) { this.spr_xiaoshan.addChild(this.skeleton); this.skeleton.pos(0, 0); this.skeleton.scale...
来源: Laya_社区 发布时间: 20250928
...c var getUrlAndEncode:Function = function(url:String,type:String):String { if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "ascii"; } 2018-06-21 1 0 分享 微博 QZONE 微信 qian 赞同来自: 你直接改...
来源: Laya_社区 发布时间: 20180104
...ya.SoundManager._bgMusic )&&(ad.src != url)就会跑到下方的 if (!ad) 判断中重新塞一遍AudioSound._musicAudio 到 AudioSound._audioCache,销毁背景音乐其实是会销毁当前的播放对象。 【建议方案】: 1.屏蔽背景音乐销毁(audio对象就一个,完...
来源: Laya_社区 发布时间: 20210112
...; } function completeHandler() { play(); } function play() { mCurrIndex++; if (mCurrIndex >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArmature.play(mCurrIndex,false); } function onEvent(e) { var tEventData = e; Laya.stage.addChild(mLabelSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY...
来源: Laya_示例 发布时间: 20251219
... this.lastT = Date.now(); let dis = 1; if(!this.cubeP){ this.cubeP = this.scene.addChild(new Laya.Sprite3D()); this.cube = this.cubeP.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); let ...
来源: Laya_社区 发布时间: 20200223
...BR enableInstancing:true, supportReflectionProbe:true, uniformMap:{ u_AlphaTestValue: { type: Float, default: 0.5, range: [0.0, 1.0] }, u_TilingOffset: { type: Vector4, default: [1, 1, 0, 0] }, u_AlbedoColor: { type: Color, default: [1, 1, 1,...
来源: Laya_社区 发布时间: 20250428
...发者自己解决 示例参考 LayaNative跳转页面AS写法 __JS__("if(window.conch)") { __JS__('window.conch.setExternalLink("http://layabox.com/")'); } LayaNative跳转页面Js写法 if(window.conch) { window.conch.setExternalLink("http://layabox.com/"); } 参...
来源: Laya_社区 发布时间: 20161129
....appendChild(file);//添加到页面; file.onchange = function(e):void { if(file.files.length>0) { fileReader.readAsDataURL(file.files[0]); } }; var fileReader:Object = new Browser.window.FileReader(); fileReader.onload = function(evt):void { if(Browser.window.FileReader.DONE==fileReader.readyS...
来源: Laya_社区 发布时间: 20180529
... file.onchange = function(e):void { if(file.files.length>0) { fileReader.readAsDataURL(file.files[0]); } } ...
来源: Laya_社区 发布时间: 20170706
... success: (res) => { if (res.code) { code= res.code; console.log("登陆成功,获取到code") } var button = wx....
来源: Laya_社区 发布时间: 20180911