大约有 1,451 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(932) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(32) laya_api(1) Laya2.0_api(1)
...行以后没有效果 (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var GlowFilter = Laya.GlowFilter; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Tween = Laya.Tween; ...
来源: Laya_社区 发布时间: 20181012
... tmapsp.zOrder=1; this.tMap.changeViewPort(-((Laya.stage.width-this.tMap.width)/2),-((Laya.stage.height-this.tMap.height)/2),this.tMap.width,this.tMap.height); this.addChild(this.tMap.mapSprite()); 请问这是什么意思啊 2020-04-20 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20200420
...a.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMap)) } private onMap(){ var idx = this.map.getLayerByIndex(0).getTileDataByScreenPos(20,20); var pass = this.map.getTileProperties(0,idx - 1,'pass'); console.l...
来源: Laya_社区 发布时间: 20190218
...te(this,this.onLoaded)); } private onLoaded():void{ //添加到舞台 Laya.stage.addChild(this.roleAni); } } new AtlasAniDemo(); ``` 运行代码,如图5所示。动画已加载到舞台上,默认是未播放状态的。  (图5) #### 2.3 播放图集动画 图集动画使用loa...
来源: Laya2.0_文档 发布时间: 20210715
...etViewPortPivotByScale(0,0); //将原地图放大3倍 tMap.scale = 3; Laya.stage.on(Event.RESIZE,this, this.resize); Laya.stage.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.mouseUp); resize(); } /** * 移动地图视口 */ private function mouseMove():void { v...
来源: Laya2.0_文档 发布时间: 20210714
....webgl.js'></script> <script> var Sprite = Laya.Sprite; var Stage = Laya.Stage; var WebGL = Laya.WebGL; Laya.init(1280, 800,WebGL); Laya.stage.alignV = Stage.ALIGN_LEFT; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = 'noborder'; Laya.stage.screenMode = Stage.SCREEN_HOR...
来源: Laya_社区 发布时间: 20170928
...,1600,"#ff0000"); this.nsp.mouseThrough=true; Laya.stage.addChild(this.nsp); this.nsp.on(Laya.Event.CLICK,this,this.drawImg,null) } drawImg(e:Event=null):void{ var copySpr:Laya.Sprite=new Laya.Sprite(); copySpr.texture=this.nsp....
来源: Laya_社区 发布时间: 20220809
...rent); //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victoryScene); this.isDelete=true; // console.log(Scene3DControl.GameSceneB); } }结束界面跳转到3D场景 import {VictorySceneUI} from '../ui/layaMaxUI' import GameScene from './GameScene'; export ...
来源: Laya_社区 发布时间: 20190903
...{ Laya.init(600,600,WebGL); Laya.stage.alignH=Stage.ALIGN_MIDDLE; Laya.stage.alignV=Stage.ALIGN_TOP; var sp:Sprite=new Sprite(); sp.width=100; sp.height...
来源: Laya_社区 发布时间: 20170920
... this.scene = Laya.loader.getRes("h5/LayaScene_scene03/scene03.ls"); Laya.stage.addChild(this.scene); //设置场景在2D界面最后(最底层为第0层) Laya.stage.setChildIndex(this.scene, 0); //获取场景模型中的角色移动碰撞区模型 var moveArea = this.scene.getChildAt(0).getChi...
来源: Laya_社区 发布时间: 20180118