大约有 1,138 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0056 秒)
Laya_社区(821) Laya2.0_文档(173) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(23) Laya3.0_文档(20) Laya2.0_api(4) laya_api(3)
...空场景 Laya.loader.create(`LayaScene_main/Conventional/main.ls`, Laya.Handler.create(this, (scene: Laya.Scene3D)=>{ Laya.stage.addChild(scene); })); 附件 : --> myLaya.zip 2019-09-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20190906
...位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError)); // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` 由于本例不需要使...
来源: Laya2.0_文档 发布时间: 20210715
...ap; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(1500, 900); //加载引擎需要的资源 var map1:TiledMap = new TiledMap(); map1.createMap("aa.json",ne...
来源: Laya_社区 发布时间: 20170105
...ni = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe)); function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); } 运行时报 TypeError:Cannot read property '_create' of null at Animat...
来源: Laya_社区 发布时间: 20171028
...是使用Laya.loader.create("model/build/warehouse1/warehouse1.lh", Laya.Handler.create(this, onComplete)); function onComplete() { //仓库原型 warehouse1 = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, ...
来源: Laya_社区 发布时间: 20180104
...laya.events.Event; import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); ...
来源: Laya_社区 发布时间: 20170608
... = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.A...
来源: Laya_社区 发布时间: 20171130
...ypescript Scene3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMate...
来源: Laya2.0_文档 发布时间: 20210714
... Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Handler.create(this, onComplete)); } ////完成回调 public function onComplete():void { //获取资源 var layaMonkey:Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")) as Sprite3D; ...
来源: Laya2.0_文档 发布时间: 20210715
...口文件: Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI(); Laya.stage.addChild(dialog); dialog.popup(); dialog.btn_question_dialog_next.on(Laya.Eve...
来源: Laya_社区 发布时间: 20180718