大约有 451 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0052 秒)
Laya_社区(189) Laya3.0_api(64) Laya2.0_api(60) laya_api(55) Laya2.0_文档(54) Laya3.0_文档(16) Laya_示例(8) Laya2.0_示例(5)
...h x y zOrder _updateMark Methods _initialize _processActive _setCullCamera addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentP...
来源: Laya3.0_api 发布时间: 20231115
...大小 this.area2D.pos(100, 100); this.area2D.size(200, 200); this.owner.addChild(this.area2D); //创建2D相机 this.camera2D = this.area2D.addChild(new Laya.Camera2D); //开发者可以根据需求自行设置相机的各项属性,例如: //将相机设为主相机 this.camera2D.isMain = true;...
来源: Laya3.0_文档 发布时间: 20251010
...void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") { dd=__JS__("window.loadingView"); dd.loading(100); } } } } 2016-09-18 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...
来源: Laya_社区 发布时间: 20160918
...8-08-22 15:24 @138*****047:var arr=[]; var s=new Laya.Sprite(); Laya.stage.addChild(s); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,function(e){ arr.push([e.stageX,e.stageY]); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,bb) }) Laya.stage.on(Laya.Event.MOUSE_UP,this,function(){ Laya.stage.off(Laya.Event.MO...
来源: Laya_社区 发布时间: 20180510
...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event exitFullscreen frameLoop frameO...
来源: Laya3.0_api 发布时间: 20231115
...esize); } function initMatter() { var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, width: 800, height: 600, options: { backgrou...
来源: Laya_示例 发布时间: 20260106
...到舞台; var sp:Sprite = new Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 } private function errorHandler(e:Object):void { } 是无法显示图片的 而用JS开发,用JS的事例,却是可以显示的 2017-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20171011
....graphics.drawRect(0, 0, 300, 300, "#ffcccc"); //添加到stage Laya.stage.addChild(bgPage); //实例化MonkeyPageUI页面 var monkeyPage: ui.MonkeyPageUI = new ui.MonkeyPageUI(); //为了能够清楚的看到这个页面所在的位置,在此设置设置一个背景色 monkeyPage.graphics.drawRec...
来源: Laya2.0_文档 发布时间: 20210715
... this.aniBirdSing.height); this.aniBirdSing.mouseEnable = true; Laya.stage.addChild(this.aniBirdSing); } 根据这个代码,我认为鼠标点击区域在图片左下区域,但结果是图片左上区域,求解? 如果我想让图片的点击区域是图片左下区域,应该如何出来...
来源: Laya_社区 发布时间: 20171026
...ite=new Sprite(); sp1.graphics.drawRect(0,0,200,400,"#FF0000"); Laya.stage.addChild(sp1); var sp2:Sprite=new Sprite(); sp2.graphics.drawRect(0,0,300,400,"#0000FF"); sp2.pos(100,100); if(sp1.getBounds().intersects(sp2.getBounds())) { trace("相交了"); }发布如下: 2016-12-03 0 4 分享 微...
来源: Laya_社区 发布时间: 20161202