大约有 1,442 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0056 秒)
Laya_社区(922) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(33) laya_api(1) Laya2.0_api(1)
...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
... } onMouseDown() { this.point.x = Laya.stage.mouseX; this.point.y = Laya.stage.mouseX; //产生射线 this.camera.viewportPointToRay(this.point,this._ray); //拿到射线碰撞的物体 this.scene.physics...
来源: Laya_社区 发布时间: 20220506
...lic function ToolTipDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya.init后去new实例,不可...
来源: Laya_社区 发布时间: 20161115
... (function shouye(){ Laya.init(100,300); this.bgimg=new BackGround(); Laya.stage.addChild(this.bgimg); })(); return shouye; })(); var BackGround = (function (_super) { function BackGround() { BackGround.super(this); this.bg=new Laya.sprite; this.bg.loaImage("war/beijing.png"); this.addchild(this.b...
来源: Laya_社区 发布时间: 20180110