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

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

571. 请问如何获取触屏上两个或者更多位置的坐标 [ 67%]

...   if (touches && touches.length == 2) {                 this.preRadian = Math.atan2(                     touches[0].stageY - touches[1].stageY,                     touches[0].stageX - touches[1].stageX);                 Laya.stage.on(Event.MOUSE_MOVE, th...

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

572. JS中List容器里renderHandler和itemHandler渲染器如何使用 [ 67%]

...请: 与内容相关的链接 提交 1 个回复 cry_11858 赞同来自:  this.list_xxx.renderHandler = this.list_bag.renderHandler || new Laya.Handler(this, this.updateList);         ActivityXXXXXUI.prototype.updateList = function(cell, index)     {         var info = cell.dataSource;  ...

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

573. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 67%]

... let mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);             mesh.on(Event.HIERARCHY_LOADED, this, this.OnHierarchyLoaded);                          let ani_names = this.ani_names;             let anies = this....

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

574. 为什么 Event 事件触发不了? [ 67%]

...300, 200, 50, 50, "#000"); Block.pos(300, 100); Block.on(Event.MOUSE_DOWN, this, function() {     console.log(1); });   点击无效,但我给用 Laya.stage.on(Event.MOUSE_DOWN); 是有效的   什么原因了?谢谢解答 2017-03-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

575. 使用百度地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...div容器 二、接着是构造函数: constructor() { Laya.init(1, 1); this.init(); // 使用高精度位置 Laya.Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaidu...

来源: Laya3.0_文档 发布时间: 20240910

576. hitTestPrior点击穿透 [ 67%]

...phics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChild(sp); var spchild:Sprite=new Sprite(); spchild.graphics.drawRect(0,0,200,200,"#FF0000"); spchild.size(200,200); spchild.on(Event.CLICK,this,onClickSpChild); sp.addChild(spchild); } private ...

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

577. 官方的示例贴上来,怎么没反映啊 [ 67%]

...反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler)...

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

578. 2.0使用addComponent的组件,怎么删除?没有removeComponent [ 67%]

...: 2018-11-30 18:25 浏览: 1281 关注: 1 人 苏栢 • 2019-02-16 16:24 (this.player.getComponent(playerScript) as playerScript).destroy(); 或者 this.player._destroyComponent(this.player.getComponent(playerScript));

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

579. MOUSE事件和移动端的Touch事件如何对应 [ 67%]

...8:04 浏览: 4035 关注: 2 人 riven • 2017-06-01 18:38 能直接监听 this.on("touchmove", this, this.onMouseMove)?

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

580. 构建APP Android Studio打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function [ 67%]

...31703/com.mihe.carrom I/LayaBox: alert=apploader.js:4515:     TypeError: this._nativeObj.addGlobalValueDefine is not a function             return this._nativeObj.addGlobalValueDefine(modifyType, type, size, defaultData);                                    ^^          ...

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