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

大约有 1,489 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)

221. 鼠标交互-双指旋转(多点触控) [ 81%]

..., this, onMouseDown); } function onMouseDown(e) { var touches = e.touches; if (touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); } } function onMouseMove(e) { va...

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

222. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 81%]

...//加载显示图片,坐标位于0,0 var temptexture=Loader.getRes(pic); if (typeof(temptexture)!="undefined"){ this.bgimg.texture=Loader.getRes(pic) }else{ this.bgimg.loadImage(pic); } this.donghua=true; this.bgimg.x=x; this.bgimg.y=y; this.bgimg.mvtox=movetox; this.bgimg.mvtoy=movetoy; this.bgim...

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

223. 【分享】通过命令行调用compile.js编译,不使用laya-cmd [ 81%]

...)>>compile_temp.js echo console.log(str)>>compile_temp.js echo if(str.match(/^\s*Error\:/)){app.exit(1);return;}>>compile_temp.js echo let isTasksComplete = str.match(/^laya\.ide\.complete$/m)>>compile_temp.js echo if (isTasksComplete){>>compile_temp.js echo app.exit(0)...

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

224. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 81%]

... */ public static function sendAtlasToOpenDataContext(url:String):void { if(!MiniAdpter.isZiYu) { var atlasJson:Object = Loader.getRes(URL.formatURL(url)); if(atlasJson) { var textureArr:Array = (atlasJson.meta.image as String).split(","); //构造加载图片信息 if (atlasJson.meta && atl...

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

225. spine 回调函数的参数没有效果 [ 81%]

...同来自: 有spine 源文件吗 2018-05-31 0 0 分享 微博 QZONE 微信 IF.T 赞同来自: 导出文件里面可以看到events 的参数的 2018-05-31 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 IF.T 相关问题 骨骼动画播...

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

226. [LayaAir3]3.3.0-beta.4已知新bug汇总 [ 81%]

...有将params传递到onOpened响应函数中 下面是临时补救的shim if (Laya.LayaEnv.version == "3.3.0-beta.4") { Scene.open = function (url: string, closeOther?: boolean, param?: any, complete?: any, progress?: any): Promise<Laya.Scene> { if (typeof (complete) === "function") { progress...

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

227. Sprite.loadImage();问题 [ 81%]

...lic function initMap(texture:Texture, bgID:int):void{             if(this.oldBgID != bgID){                 oldBgID = bgID;                 if(oldTexture){                     oldTexture.destroy(true);                     oldTexture = nu...

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

228. 微信小游戏开放数据域加载图集里面图片的路径应该怎么填写????官方能给例子吗??? [ 81%]

...据你需要自己处理,例子参数: //接收主域透传的数据 if(MiniAdpter.isZiYu && MiniAdpter.isPosMsgYu) { __JS__('wx').onMessage(function(message:Object):void{ if(message['isLoad'] == "filedata") { // trace("------------------------filedata-url:" + message.url); MiniFileMgr.z...

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

229. 骨骼释放纹理 Templet.TEMPLET_DICTIONARY[this.url] url用错了导致Templet删不掉 [ 81%]

...   tTexture=this.subTextureDic[$each_tTexture];             if(tTexture)                 tTexture.destroy();         }         var $each_tTexture;         /*for each*/for($each_tTexture in this._textureDic){             tTexture=this...

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

230. 鼠标交互-双指旋转(多点触控) [ 81%]

...t = Laya.Event; // 手机上才有 touches 属性 let touches = e.touches; if (touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouseMove); } } onMouseMove(e) { let to...

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