大约有 1,138 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0054 秒)
Laya_社区(821) Laya2.0_文档(173) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(23) Laya3.0_文档(20) Laya2.0_api(4) laya_api(3)
....load("res/threeDimen/scene/materialScene/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); })); ```
来源: Laya2.0_文档 发布时间: 20210715
... var Stage = Laya.Stage; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var maskSp; var bg2; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640, WebGL); ...
来源: Laya_社区 发布时间: 20170826
....load("res/threeDimen/scene/materialScene/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); })); ```
来源: Laya2.0_文档 发布时间: 20210715
...iledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) } private onComplete(){ this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMap)) } p...
来源: Laya_社区 发布时间: 20190218
...ctangle(0,0,320,160); tMap.createMap("res/TileMap/Test.json",viewRect,Laya.Handler.create(this,onCreateMap)); var point =0; function onCreateMap(){ this.role = tMap.getLayerObject("role","player"); console.log(this.role.x,this.role.y); } 附件 : --> 2017-11-24 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20171124
...对,帮忙看下哪里要调整? 对象池对类怎么传参数 Laya.Handler.create 加载图片回调参数问题 子节点的 getChildIndex(node:Node):int 根据子节点对象,获取子节点的索引位置。参数是什么 http 请求 once 的 回调参数,如何传递和接收? IDE...
来源: Laya_社区 发布时间: 20200409
回调函数... constructor(){ Laya.loader.load(this.skins, Handler.create(this, this.onUIAssetsLoaded)); } aaa() { } function onUIAssetsLoaded( this.aaa();//为什么回调函数不能调用,undefined } 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20170626
...ixueying 赞同来自: package { import laya.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.l...
来源: Laya_社区 发布时间: 20170802
...问题 W/System.err: Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 你们封装的那几个login等是在哪个线程中,调用第三方sdk老是报这个,各种改写都不行 2018-03-30 1 条评论 免费帖 --> 分享 微博 QZO...
来源: Laya_社区 发布时间: 20180330
...x; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(700,600); Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { var texture:Texture=Loader.ge...
来源: Laya_社区 发布时间: 20170414