大约有 660 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0065 秒)
Laya_社区(337) Laya3.0_api(62) Laya2.0_api(58) laya_api(53) Laya2.0_文档(51) Laya2.0_示例(44) Laya_示例(39) Laya3.0_文档(16)
...te Complete():void{ this._mLoadState = ESceneLoadState.eLoadComplete; Laya.stage.on(Laya.Event.RESIZE, this, this.onResizeHandler); this.onResizeHandler(); if (this._mCompleteHandler){ this._mCompleteHandler.run(); } } private onResizeHandler():void{ this._mTiledMap.changeViewPort(this._mViewPortX, ...
来源: Laya_社区 发布时间: 20180529
...ton.pos(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.h...
来源: Laya_社区 发布时间: 20171114
...rite = new Laya.Sprite(); a.graphics.drawCircle(0, 0, 50, "#ff0000"); Laya.stage.addChild(a); a.size(100, 100); a.pos(200, 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("touch a"); } 因为需要将mouseThroug...
来源: Laya_社区 发布时间: 20161109
...设置为true后,会变灰并且禁用鼠标。UIComponent displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像...
来源: Laya2.0_api 发布时间: 20190513
...同来自: 不会啊!我测试了一下并没有你说的问题! this.stage.on(Event.MOUSE_UP, this, onB); private function onB():void { Laya.SoundManager.playSound("res/sound/onClick.wav"); } 你看看是不是你的代码逻辑有问题那? ...
来源: Laya_社区 发布时间: 20180503
...认的模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sha...
来源: Laya2.0_文档 发布时间: 20210714
...认的模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sha...
来源: Laya2.0_文档 发布时间: 20210715
...new Laya.Text(); constructor() { //初始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //加载场景人物腳色 Laya.Scene3D.load( "res/build5/SampleScene.ls", Laya.Handler.create(this, this.onComplete) ...
来源: Laya_社区 发布时间: 20200917
...此容器作为物理世界坐标世界,进行坐标变换,默认值为stage 设置特定容器后,就可整体位移物理对象,保持物理世界不变PhysicsPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By Physics()Physics enable(options:...
来源: Laya2.0_api 发布时间: 20190513
...生了偏移,unity中不会 //添加3D场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //添加照相机 var camera:Camera = (scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 10, 0)); camera.transform.rotate(new Vector3(-...
来源: Laya_社区 发布时间: 20190417