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

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

821. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 76%]

...ed回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selectHan...

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

822. 2.13版本 2D物理碰撞OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 [ 76%]

...碰撞 OnTriggerEnter 第三个参数 contact.getHitInfo() 报错   new this.box2d   box2d 是undefined 请问这里的 this 指向是 ??   contact.getHitInfo = function () {                 var manifold = new this.box2d.b2WorldManifold();                 this.GetWorldManifold(ma...

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

823. matter中有没有类似于unity中的OnCollision碰撞检测函数呀,用js怎么写 [ 76%]

...来自: 么有。这个我给你个demo,你自己看看。 1.初始化 this.Matter.Events.on(this._engine, 'collisionActive', this.onCollision);   2.碰撞检测 private onCollision(event): void { console.log("碰撞了..");  var home = _gamePage._mainPage._playPage;  for(var i = 0; i < even...

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

824. 修改localRotationEuler的问题 [ 76%]

...性,再进行赋值操作,代码如下。// 刷新下数值 var temp = this.model.transform.localRotationEuler; // 再进行修改 this.model.transform.localRotationEulerY = 90;方案二:在laya.d3.js中,在set localRotationEulerX、set localRotationEulerY、set localRotationEulerZ等属性...

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

825. layaNative测试运行原生app时,laya3D解析动画处报错 [ 76%]

...下 class conchFloatArrayKeyframe {     constructor() {         this._nativeObj = new _conchFloatArrayKeyframe();     }     set time(value) {         this._nativeObj.setTime(value);     }     get time() {         return this._nativeObj.getTime();     } 这个 n...

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

826. TiledMap创建地图在LayaAir中显示不完全 [ 76%]

...Laya.stage.ALIGN_MIDDLE; Laya.stage.screenMode = Laya.stage.SCREEN_NODE;*/ this.tMap = new Laya.TiledMap(); var viewRect = new Laya.Rectangle(0,0,W,H); this.tMap.createMap("../bin/res/TileMap/orthogonal.json",viewRect);   } Start(); 附件 : --> 2018-09-15 添加评论 免费帖 --> 分享 微博 Q...

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

827. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 76%]

新手入坑请教下各位大神关于LayaMaxUI问题 /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { ex...

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

828. laya绘制图形进行缩放的时候有问题 [ 76%]

...着变小 a1748004424 • 2018-02-11 16:41 if (e.delta > 0 && this.scaleX >= 0.5) { this.scaleX -= 0.1; this.scaleY -= 0.1; for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].scaleX += 0.1; this.nodes[i].scaleY += 0.1; } } else if (e.delta < 0 && this.scaleX <...

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

829. 请问我怎么在js中调用这个方法 [ 76%]

...var Zszen; (function (Zszen) { var Test = (function () { function Test() { this.rand = Math.random(); } Test.output = function (){ console.log(this.rand); } return Test; }()); Zszen.Test = Test; })(Zszen || (Zszen = {}));我使用 var a = new Zszen.Test(); a.output(); //这句我调用说找不到, ...

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

830. 分享-js资源进度加载 [ 76%]

...on", type: Laya.Loader.ATLAS }]; Laya.loader.load(arr, Laya.Handler.create(this, this.onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并且监听 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetsLoaded), Laya.Ha...

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