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

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

921. 圆不跟谁 sprite 一起缩放? [ 68%]

...stSp.graphics.drawCircle(100, 100, 20, null, "ffffff"); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.MouseWheel);  this._rootSp.hitArea = new Laya.Rectangle(0, 0, 10000, 10000) this._rootSp.addChild(this.firstSp); Laya.stage.addChild(this._rootSp); }  private MouseWheel(e: Laya.Event) { let xs...

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

922. laya.d3.core.RenderableSprite3D [ 68%]

... | Index | Frames No Frames RenderableSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class RenderableSprite3DInheritanceRenderableSprite3D Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses Glitter, MeshSprite3D, ShuriKenParticle3D, SkinnedMeshSpri...

来源: laya_api 发布时间: 20170929

923. 高级应用-渲染纹理 [ 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_示例 发布时间: 20251209

924. 分享一下自己的屏幕适配方案 [ 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

925. 求解关于跨域的具体操作 [ 68%]

...tHeader('Content-Type','application/x-www-form-urlencoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); 2018-07-04...

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

926. 3D的一些问题 [ 68%]

...得材质,而lh文件则不行,然而这样写的话,又出现了Laya.Event.HIERARCHY_LOADED事件并没有被触发,导致无法在Laya.Event.HIERARCHY_LOADED事件运行的方法里获得材质,只能使用延时来获得材质 150*****372 • 2017-04-23 11:28 对于第二个问题的解...

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

927. 3D开启多线程报错 [ 68%]

...(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

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

...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

929. dialog第一次可以正常调出,第二次无法正常popup出来 [ 68%]

...oginView.prototype.init = function () {         this.btnReg.on(Laya.Event.CLICK, this, this.onBtnReg);         this.btnLogin.on(Laya.Event.CLICK, this, this.onBtnLogin);         this.dlg = new NormalDialog();         this.dlg.init();     };   附件 : --> firstgame.ra...

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

930. laya.ui.UIGroup [ 68%]

...All Classes | Index | Frames No Frames UIGroupProperties | Methods | Events Packagelaya.uiClasspublic class UIGroupInheritanceUIGroup Box UIComponent Sprite Node EventDispatcher ObjectImplements IItemSubclasses RadioGroup, Tab Group 是一个可以自动布局的项集合控件。 Group 的...

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