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

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

431. Laya的安卓二次开发主动调用js层,无法实现传回数据给js层 [ 59%]

...到微信的code数据,始终无法返回数据给Laya层。 方式1:m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new JSONObject(); try { obj.put("value", "Hello Laya!"); } catch(JSONException e) { e.printStackTrace(); } Log.d("Laya", "======准备...

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

432. laya.ui.Tree [ 59%]

...如果父节点手动设置为false,则不会更改)。 Sprite  mouseHandler : Handler 单元格鼠标事件处理器。 默认返回参数(e:Event,index:int)。 Tree mouseThrough : Boolean = false 鼠标事件与此对象的碰撞检测是否可穿透。碰撞检测发生在鼠标事件...

来源: laya_api 发布时间: 20170929

433. 如何使用javascript版本的加载模式 [ 58%]

... Laya.loader.load([ { url: config.layerUIJson, type: Laya.Loader.JSON } ], Handler.create(this, function () { this.gameScenes = new ui.layer.gameScenesUI(); this.addChildren(this.gameScenes); })); 但页面上却没有任何内容显示出来!求教!!我看了论坛里面的教程:https://as...

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

434. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 58%]

...) at Loader.Laya3D._onTextureCubeLtcLoaded (libs/laya.d3.js:14656) at EventHandler.__proto.runWith (libs/laya.core.js:1400) at Loader.__proto.event (libs/laya.core.js:1156) at Loader.__proto.complete (libs/laya.core.js:16348) at Loader.__proto.onLoaded (libs/laya.core.js:16316) at EventHandler.__pro...

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

435. 在Unity中导出拖尾系统(ActionScript-3D基础(AS3)-LayaAir3D之拖尾系统) [ 58%]

...像机 //加载拖尾 Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Handler.create(this,function(sp:Sprite3D):void{ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子摄影机观察效果 Laya.timer.frameLoop(1,this,function():void{ //使...

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

436. [BUG]刚体约束问题,移动后约束混乱! [ 58%]

...l();     Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) {       planeMat.albedoTexture = tex;     }));     //设置纹理平铺偏移     var tilingOffset = planeMat.tilingOffset;     tilingOffset.setValue(5, 5,...

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

437. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 58%]

...dMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLayer = this.tMap.getLayerByName("player"); this.tMapPlayer = new Laya.Sprite(); this.tMapPlayer.graphics.drawRect...

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

438. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...colorPicker.skin = this.skin; colorPicker.pos(100, 100); colorPicker.changeHandler = new Laya.Handler(this, this.onChangeColor, [colorPicker]); this.owner.addChild(colorPicker); this.onChangeColor(colorPicker); } private onChangeColor(colorPicker: Laya.ColorPicker, e: any = null): void { console.log...

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

439. laya.display.Scene [ 58%]

...型是否是鼠标事件。 EventDispatcher  load(url:String, complete:Handler = null, progress:Handler = null):void[static] 加载场景及场景使用到的资源 Scene loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture...

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

440. 图片显示好奇怪 [ 58%]

...c function LayaAirDemo() { Laya.init(800,800); Laya.loader.load('logo.png',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); ...

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