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

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

471. 为什么rotation、scale赋值了不管用? [ 70%]

...什么rotation、scale赋值了不管用? 我创建了一个Sprite3D: this.role3D = Laya.MeshSprite3D.load("3d/ben/Export.lh") this.role3D.transform.scale = new Laya.Vector3(0.5,0.5,0.5); this.role3D.transform.position = new Laya.Vector3(0,20,0); 以上的scale、position设置均不起作用,...

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

472. Box绑定事件失效 [ 70%]

...0 1 分享 微博 QZONE 微信 S123456123456 赞同来自: 代码部分: this.room_top1 = new Laya.Box(); console.log(this.room_top1) this.room_top1.on("click",this,function(){console.log("11111111111")});   2017-11-16 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你输出...

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

473. 网络通信 · LayaAir3.0文档 · LAYABOX [ 70%]

...象所封装的原生 XMLHttpRequest 引用。 */ get http(): any { return this._http; } 通过 ._http 属性可以获得XMLHttpRequest。XMLHttpRequest 中文可以解释为可扩展超文本传输请求。它为客户端提供了在客户端和服务器之间传输数据的功能。它提供了一...

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

474. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 70%]

.../scene/TerrainScene/Assets/HeightMap.png"); //初始化MeshTerrainSprite3D this.terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh as Mesh, heightMap, 6.574996471405029, 10.000000953674316); //更新terrainSprite世界矩阵(为可行走区域世界矩...

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

475. Laya的Dialog上如果有按钮 我希望点击到按钮或者其他可以相应的控件 不会触发拖动效果 [ 70%]

...部分。 核心就是如下方法: public setCanDrag(canDrag:boolean) { this.m_CanDrag = canDrag; if(this.m_CanDrag) { this.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } else { this.off(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } }  onMouseDown(e: Laya.Event) { // console.log(e.curr...

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

476. socket大型项目回调 [ 70%]

... = console.log; console.warn = console.log; console.error = console.log; } this._message = new Message(); this._package = new Package(); this.socket = null; this.callbacks = {}; this.handlers = {}; // Map from request id to route this.routeMap = {}; this.heartbeatInterval = 0; this.heartbeatTimeout ...

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

477. Spine骨骼动画点击区域偏移 获取不到width height [ 70%]

...te _factory: Laya.Templet;  constructor(spine, x, y, speed) {         this._factory = new Laya.Templet();         this._factory.loadAni(`../bin/res/spine_model/${spine}.sk`);         this._factory.on(Laya.Event.COMPLETE, this, this.parseComplete, [x, y]);     }     private parseComp...

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

478. ani动画的问题 [ 70%]

ani动画的问题 我做了个ani的动画 this.ani2.loadAnimation("Ani/test.ani"); this.ani2.play(0,false, "test" ); 这样是能够播放的 但是我把动画直接拖到一个UI上,var 为ani1 直接调用 this.ani1.play(0,false, "test");会报 ani not found: Ani/test.ani#test Ani/test.ani ...

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

479. 为什么hitTestPoint始终是false? [ 70%]

...nstructor() { super(); var img:Laya.Image = new Laya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console.log(this.s.hitTestPoint(e.stageX, e.stageY)); } } 很简单的代码,不知...

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

480. TypeScript Json 数据解析 [ 70%]

...te on2DComplete(): void { Laya.loader.load("zxc.json", Laya.Handler.create(this,this. onLoadConfigComplete),null,Laya.Loader.JSON); } wayPoints:JSON; private onLoadConfigComplete(): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayPoints.name); //这里会报name ...

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