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

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

931. 分享一下自己的屏幕适配方案 [ 68%]

....ImgX=this.Img.x; this.ImgY =this.Img.y; this.layout(); Laya.stage.on(Laya.Event.RESIZE, this, this.layout); Laya.stage.on(Laya.Event.ADDED, this, this.layout);   layout(){ var bWidth:number = Browser.width; //浏览器的宽 var bHeight:number = Browser.height;//浏览器的高   var wRatio:numbe...

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

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

...i(`../bin/res/spine_model/${spine}.sk`);         this._factory.on(Laya.Event.COMPLETE, this, this.parseComplete, [x, y]);     }     private parseComplete(x, y) {         this._factory.off(Laya.Event.COMPLETE, this, this.parseComplete);         var sprite = this._factory.buildArmature...

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

933. 自己画的view不支持鼠标点击吗? [ 68%]

...tyle: "#123456"}); this.addChild(btn_1); btn_1.mouseEnabled=true; btn_1.on(Event.MOUSE_DOWN, this, onClickBt1);     不管怎么点,在这个点击方法里面是不会执行的  2018-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

934. LayaBox如何多点触摸? [ 68%]

...ldAt(sp, 0); Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; sp.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin); } protected function onTouchBegin(event:TouchEvent):void { log(event.touchPointID.toString()); } cuixueying • 2016-01-23 11:17 你的demo在原生浏览器下是可以正...

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

935. 高级应用-渲染纹理 [ 68%]

....stage.height - 100 * Laya.Browser.pixelRatio); changeActionButton.on(Laya.Event.CLICK, this, function () { layaPlane.getChildAt(0).meshRender.material.diffuseTexture = renderTargetCamera.renderTarget; }); })); } function setMaterials(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var mesh...

来源: Laya_示例 发布时间: 20251219

936. 有没有懂tiledmap地图的朋友帮忙看看问什么地图加载不出来 [ 67%]

...ckage { import laya.display.Sprite; import laya.display.Stage; import laya.events.Event; import laya.map.GridSprite; import laya.map.MapLayer; import laya.map.TileAniSprite; import laya.map.TileTexSet; import laya.map.TiledMap; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.H...

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

937. 3D开启多线程报错 [ 67%]

...(laya.d3.js:37329)     at ResInfo.onLoaded (laya.core.js:13189)     at EventHandler.__proto.runWith (laya.core.js:724)     at ResInfo.__proto.event (laya.core.js:494)     at LoaderManager.__proto._endLoad (laya.core.js:13347)     at Loader.onLoaded (laya.core.js:13323)     at EventHandle...

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

938. HttpRequest在网页上和APP上表现不一致 [ 67%]

... function(){console.log("http timeout test: timeout")};     hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http timeout test: success");});     hr.once(Laya.Event.ERROR, this, (e: any)=>{console.log("http timeout test: error " + e.toString());});     console.log("http timeout test:...

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

939. 加上size设置后,精灵不能点击. [ 67%]

...0.33 ? "img/flower2.png" : "img/flower3.jpg" img.loadImage(s); img.on(Laya.Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 300) Laya.stage.addChild(img) } function createFlower() { var f = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "i...

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

940. laya.d3.terrain.TerrainChunk [ 67%]

...lasses | Index | Frames No Frames TerrainChunkProperties | Methods | Events Packagelaya.d3.terrainClasspublic class TerrainChunkInheritanceTerrainChunk RenderableSprite3D Sprite3D Node EventDispatcher Object TerrainChunk 类用于创建地块。 Public Properties Hide Inherited Public Propert...

来源: Laya2.0_api 发布时间: 20190513