大约有 1,489 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
..., 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
...//加载显示图片,坐标位于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
...)>>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
... */ 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
...同来自: 有spine 源文件吗 2018-05-31 0 0 分享 微博 QZONE 微信 IF.T 赞同来自: 导出文件里面可以看到events 的参数的 2018-05-31 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 IF.T 相关问题 骨骼动画播...
来源: Laya_社区 发布时间: 20180531
...有将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
...lic function initMap(texture:Texture, bgID:int):void{ if(this.oldBgID != bgID){ oldBgID = bgID; if(oldTexture){ oldTexture.destroy(true); oldTexture = nu...
来源: Laya_社区 发布时间: 20171019
...据你需要自己处理,例子参数: //接收主域透传的数据 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
... tTexture=this.subTextureDic[$each_tTexture]; if(tTexture) tTexture.destroy(); } var $each_tTexture; /*for each*/for($each_tTexture in this._textureDic){ tTexture=this...
来源: Laya_社区 发布时间: 20190704
...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