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

大约有 2,033 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0065 秒)

481. contact.getHitInfo [ 84%]

...法 contact.getHitInfo = function (): any {     var manifold: any = new this.box2d.b2WorldManifold();    ... } 这里的this不是Physics类的当前对象,this.box2d undefined 附件 : --> 2020-03-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

482. BUG:Sprite.event() [ 84%]

...JS代码,的确有问题,data.unshift没有判断是否是数组 if (this.method==null)return null; var id=this._id; if (data==null) var result=this.method.apply(this.caller,this.args); else if (!this.args && !data.unshift)result=this.method.call(this.caller,data); else if (this.args)res...

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

483. js进度,进度,js场景进度效果 [ 84%]

...ame = 'Game'; window[className] = (function(original) { function Class() { this.arr = [ "res/atlas/lucky8.json", "res/atlas/lucky8/lewinlineicons.json", "res/atlas/lucky8/setting.json", "res/atlas/lucky8/setView.json", "res/atlas/lucky8/kj.json", "res/atlas/lucky8/mh.json", "res/atlas/lucky8/light.j...

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

484. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 84%]

...aya.Script { private tMap:Laya.TiledMap; onEnable() { //创建地图对象 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledMap地图 this.tMap.createMap("reso...

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

485. Laya2.7.1 射线提示rayCast未定义 [ 84%]

...ass click3d extends Laya.Script3D{ constructor() { super(); //创建场景 this.scene = Laya.stage.addChild(new Laya.Scene3D()); //添加相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(new Laya.Vector3(0, 0.7, 5)); this.camera.transform.rotat...

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

486. 小游戏启用版本管理本地资源加载报错解决方案 [ 84%]

...if (type==="image" || type==="htmlimage" || type==="nativeimage")return [b]this._loadImage(url);[/b] 改为: if (type==="image" || type==="htmlimage" || type==="nativeimage")return [b]this._loadImage(this._url);[/b] 再修改bin/libs/laya.wxmini.js文件的下面几处即可。 1. 大约793行 if(...

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

487. list点击label保留一种状态 [ 84%]

list点击label保留一种状态 var record_slide_list = this.record_slide_list; data = []; for(var i = 0;i < 10;i++){ data.push({ bgColor:{color:'#f3d9b4'}, type:false }) } record_slide_list.array = data; record_slide_list.selectEnable=true; record_slide_list.selectHandler = new Handler(this, ...

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

488. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 84%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果** * **建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用runtime继承式写法,如果是独立小模块,功能单一,建议用...

来源: Laya2.0_文档 发布时间: 20210714

489. 循环添加一组按钮事件无法正常使用 [ 84%]

...    var b:Sprite = new Sprite();                 //var c = this.getChildByName("eggHole"+[eggLoc[i][0]+eggLoc[i][1]);                 b.graphics.drawTexture(Laya.loader.getRes(Res),tx-45,ty-45);                 b.size(92,96);                 b.name ...

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

490. 有关继承类的问题 [ 84%]

... Building = (function (_super){ function Building(params) { Building.super(this); } Laya.class(Building,"Building",_super); return Building; })(Laya.Sprite)   //床 var Bed = (function (_super){ function Bed(params) { Bed.super(this); } Laya.class(Bed,"Bed",Building); return Bed; })()     var Hom...

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