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

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

951. 3D的一些问题 [ 67%]

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

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

952. 圆不跟谁 sprite 一起缩放? [ 67%]

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

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

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

954. laya.d3.core.material.WaterPrimaryMaterial_API3.0 [ 67%]

...tCreateURL _setGPUMemory addDefine clone cloneTo destroy effectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getText...

来源: Laya3.0_api 发布时间: 20231115

955. 求解关于跨域的具体操作 [ 67%]

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

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

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

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

958. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 67%]

..._jiesan.png"); button.pos(300, 0); this.roombg.addChild(button); button.on(Event.MOUSE_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); this.size(416, 270); this.text = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; t...

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

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

960. laya.d3.core.SkinnedMeshSprite3D [ 67%]

...| Index | Frames No Frames SkinnedMeshSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class SkinnedMeshSprite3DInheritanceSkinnedMeshSprite3D RenderableSprite3D Sprite3D Node EventDispatcher Object SkinnedMeshSprite3D 类用于创建网格。 Public Properties...

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