大约有 825 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0067 秒)
Laya_社区(495) Laya2.0_文档(93) Laya3.0_api(91) Laya2.0_api(57) laya_api(53) Laya3.0_文档(25) Laya2.0_示例(7) Laya_示例(4)
...到微信的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
...如果父节点手动设置为false,则不会更改)。 Sprite mouseHandler : Handler 单元格鼠标事件处理器。 默认返回参数(e:Event,index:int)。 Tree mouseThrough : Boolean = false 鼠标事件与此对象的碰撞检测是否可穿透。碰撞检测发生在鼠标事件...
来源: laya_api 发布时间: 20170929
... 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
...) 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
...像机 //加载拖尾 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
...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
...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
...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
...型是否是鼠标事件。 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
...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