大约有 803 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
...舞台 Laya.loader.load([this.monkey1,this.monkey2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ //创建一个实例 this.img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(this.img); //显示初始化绘制的图片 th...
来源: Laya_社区 发布时间: 20180226
...用就挂…… Laya.Scene3D.load("LayaScene_Map/Map.ls",Laya.Handler.create(null,function(scene){ //加载完成获取到了Scene3d Laya.stage.addChild(scene); })); 附件 : --> LayaScene_Map.zip 2020-07-07 添加评论 免费帖 --...
来源: Laya_社区 发布时间: 20200707
... //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): (图2)
来源: Laya2.0_文档 发布时间: 20210715
...cene3D.load("LayaScene_game_scene/Conventional/game_scene.ls",Laya.Handler.create(this,function (scene) { Laya.stage.addChild(scene); } 我这样导入场景,不new相机,就是在unity运行时什么样LayaBox运行也什么样 如果你在Laya中又重新new了相机,比如...
来源: Laya_社区 发布时间: 20190430
... "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) if(tEventData.name=="'fall'") { trace('fall'); } else if(tEventData.name=="'jump'") { trace('jump'); } else if(tEventData.name=="'stand'") { trace('stand'); } else if(tEventData.name=="'walk'") { trace('...
来源: Laya_社区 发布时间: 20170406
...Name+".png"); // 读取图集生成大切片 let textureIns = Laya.Texture.create(texture, aniProps.res[aniProps.mc[options.srcName].frames[i].res].x, aniProps.res[aniProps.mc[options.srcName].frames[i].res].y, aniProps.res[aniProps.mc[options.srcName].frames[i].res].w, aniProps.res[aniProps.mc[opti...
来源: Laya_社区 发布时间: 20190215
...{ Laya.loader.load("../../res/ui/dialog (3).png", Laya.Handler.create(this, function(){ var dialog = new Image("../../res/ui/dialog (3).png"); dialog.scaleX = 2; dialog.scaleY = 2; var panel = new Panel(); panel.vScrollBarSkin = ""; panel.hScrollBarSki...
来源: Laya_社区 发布时间: 20180201
....Skeleton(); tmpSpine.load("spineFile/6402.sk",Laya.Handler.create(this,()=>{ tmpSpine.showSkinByIndex(2);//皮肤ID:1,2 tmpSpine.play("idea",true); }),1); tmpSpine.x = 365; tmpSpine.y = ...
来源: Laya_社区 发布时间: 20200318
...ectangle(0, 0, Browser.width, Browser.height); //创建TiledMap地图 tMap.createMap("res/TiledMap/orthogonal-outside.json",viewRect, Handler.create(this, this.onCreateMapLoaded)); } private function onCreateMapLoaded():void { trace("loaded..."); } } } testTiledMap.zip 2018-04-28 2 2 分享 微博 Q...
来源: Laya_社区 发布时间: 20180428
...ya.Scene3D.load('LayaScene_OldHouse/Conventional/OldHouse.ls',Laya.Handler.create(this,this.onComplete)); 的onComplete方法进行赋值的吗?这里赋值的onComplete(scene) 应该是Scene3D 的吧? 努力 • 2019-05-24 21:22 大佬,我将代码上传了,您看一下,谢谢
来源: Laya_社区 发布时间: 20190523