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

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

221. 裁切图片后,该用什么方式去重绘出裁切后的图片 [ 64%]

...raphics;         ctx.clear()         const len = points.length;         console.log("ppppppppppppppp ", points)         ctx.drawPoly(0, 0, points, "#FFFFFF", "#FF00FF", 1)     } 附件 : --> 2020-04-28 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

222. List 组件做的手风琴Demo [ 64%]

...);         list.repeatX =1;         list.repeatY =this.arr.length;         list.itemRender =Item; //Item 为继承BOX类         list.vScrollBarSkin ="";         Laya.stage.addChild(list);         list.array =this.arr;         list.renderHandle...

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

223. Node.ts 节点销毁之后为什么要注释掉 timer 的清理操作。 [ 64%]

...子节点的数量? 无法对载入的材质操作。sharedMaterials的length为0 laya 2.0 bug onEnable 分离模式节点没有创建 加载.ls场景文件,销毁场景,再加载同一场景,想恢复初始状态,结果报错【附Demo】 Laya解析XML中,XML元素节点的属性值如...

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

224. ts怎么调用input file弹框选择本地文件 [ 64%]

...nchange = function(e):void {                 if(file.files.length>0)                  {                      fileReader.readAsDataURL(file.files[0]);                  }             }              var _this...

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

225. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 64%]

...= Food; list.array = foodArray; list.repeatX = 1; list.repeatY = foodArray.length; list.renderHandler = new Handler(this, onListRender); Laya.stage.addChild(list); } private function onListRender(food):void{ trace(food); food.on(Event.CLICK,this.test); } private function test():void{ trace("test"); ...

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

226. 本地双击html如何打开laya项目? [ 64%]

...ON_VIEW); File file = new File(filePath); if (file != null && file.length() > 0 && file.exists() && file.isFile()) { i.setDataAndType(Uri.parse("file://" + filePath), "application/vnd.android.package-archive" ); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActiv...

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

227. TimeLine调用destroy报错&执行完成后回到起点 [ 64%]

...  报错信息: .max.js:12479 Uncaught TypeError: Cannot read property 'length' of null at TimeLine.__proto._update (HMain.max.js:12479) at TimerHandler.__proto.run (HMain.max.js:9196) at Timer.__proto._update (HMain.max.js:8951) at Stage.__proto.render (HMain.max.js:16932) at Stage.__proto._loop...

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

228. 1.7.8新版本3d骨骼动画如何获取绑点呢 [ 64%]

...re/Fire.lh"); 先查到节点 for(var i:int = 0;i<ani._avatarNodes.length;i++) { if(AnimationNode(ani._avatarNodes[i]).name == "weaponEffect") { animationNodeTemp = ani._avatarNodes[i]; break; } } 然后通过loop来设置 effectTemp.transform.worldMatrix = animationNodeTemp.transf...

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

229. 网页调试崩溃了 [ 64%]

...ion WebGLProgram() { … } [[Scopes]]:Scopes[0] arguments:null caller:null length:0 name:"WebGLProgram" prototype:WebGLProgram {constructor: , Symbol(Symbol.toStringTag): "WebGLProgram"} constructor:function WebGLProgram() { … } Symbol(Symbol.toStringTag):"WebGLProgram" __proto__:Object {construct...

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

230. Touch接口缺少stageX,stageY [ 64%]

...y<any> = e.touches;             if (touches && touches.length == 2) {                 this.preRadian = Math.atan2(                     touches[0].stageY - touches[1].stageY,                     touches[0].stageX - touches[1].stageX);             ...

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