大约有 657 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0058 秒)
Laya_社区(335) Laya3.0_api(62) Laya2.0_api(58) laya_api(53) Laya2.0_文档(51) Laya2.0_示例(44) Laya_示例(39) Laya3.0_文档(15)
...载prefab 3D平行光产生的投影,如何修改颜色深浅? 修改stage的scale后,会发生异常情况 发布H5后通过网页打开出现左上角的那个图标是什么东东 怎么去掉 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: ...
来源: Laya_社区 发布时间: 20170820
...; Laya.init(800, 1030); Stat.show(0,0); var drawLayer = new Sprite(); Laya.stage.addChild(drawLayer); drawLayer.width = 800; drawLayer.height = 1030; drawLayer.on(Event.MOUSE_MOVE, this, mousemove); function mousemove(e) { drawLayer.graphics.drawCircle(e.target.mouseX,e.target.mouseY,20,"#ff...
来源: Laya_社区 发布时间: 20160725
...var clickRect = new Laya.Sprite(); clickRect.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height-100, "#ffffff" ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Event.CLICK, this, function(){ console.log( 'adf' ) } ); 我创建一个多边形,然后添加一个点击事件就没...
来源: Laya_社区 发布时间: 20180201
...有静音的话,恢复网页后报错 游戏中有这样一个监听Laya.stage.on(Event.BLUR, this, onBlur); onBlur函数里有这样一个语句SoundManager.stopAll(); 进行了主动静音,这样做的目的是休眠后游戏自动结束,结束后的界面是没有背景音的,这样再复...
来源: Laya_社区 发布时间: 20170320
...ontroller(){ super(); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Scene3D.load("res/model/LayaScene_Car/Conventional/car.ls", Handler.create(null, function(scene:...
来源: Laya_社区 发布时间: 20190328
改变Laya.stage.scaleMode的问题 LayaAir IDE:1.7.17beta. 作业系统:Mac10.12.6. 浏览器:Google Chrome. 我会使用下列方式监听视窗改变的事件。Laya.stage.on(Laya.Event.RESIZE,this,this.doResize.bind(this)); 并且会在该事件(doResize)中改变 Laya.stage.scaleMod...
来源: Laya_社区 发布时间: 20180321
...ew = new LoginView(); loginView.init(); Laya.stage.addChild(loginView); } LoginView.js中的init函数 LoginView.prototype.init = function () { this.btnReg.on(Laya.Event.CLICK, this, this.onBtnReg); this.btnLogin.on(Laya.Event...
来源: Laya_社区 发布时间: 20170317
...ple() { //初始化引擎 Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf...
来源: Laya_社区 发布时间: 20180424
...era") as Laya.Sprite3D).transform.position) } onStart(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDownCb) } private onMouseDownCb(e:Laya.Event):void{ console.log("点击屏幕") // console.log("相机位置",this.camera.) this.camera.viewportPointToRay(new Laya.Vector2(Laya....
来源: Laya_社区 发布时间: 20190621
...I DocumentationAll Packages | All Classes | Index | Frames No Frames StageProperties | Methods | Events | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台...
来源: Laya2.0_api 发布时间: 20190513