• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 445 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0042 秒)

21. UI-RefreshList [ 86%]

...reshLoading.bottom = 10; this.refreshLoading.visible = false; this.baseBox.addChild(this.refreshLoading); // 加载动画 this.loadingAni = new Animation(); this.loadingAni.loadAnimation("res/ui/refreshList/ani/Refresh.ani"); this.loadingAni.pos(27, 36); this.loadingAni.autoPlay = true; this.refresh...

来源: Laya2.0_示例 发布时间: 20240929

22. 绘制三角形、多边形及根据数据绘制图案(TypeScript-LayaAir基础篇(TS)-矢量图) [ 86%]

...      this.sp = new Sprite();             Laya.stage.addChild(this.sp);             //画三角形             this.sp.graphics.drawPoly(30, 28, [0, 100, 50, 0, 100, 100], "#ffff00");            }     } } new laya.Sprite_DrawShapes(...

来源: Laya2.0_文档 发布时间: 20210714

23. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 86%]

...曲线 _view.graphics.drawCurves(0,0, points, "#ff0000", 15); Laya.stage.addChild(_view); _view.size(80, 100); _view.on(Event.CLICK, this, __clickHandler); } private function __clickHandler():void { trace(_view.stage.mouseX + "---" + _view.stage.mouseY); /*获取所画曲线鼠标点击处的像素...

来源: Laya_社区 发布时间: 20180319

24. 绘制三角形、多边形及根据数据绘制图案(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 86%]

...         sp = new Sprite();             Laya.stage.addChild(sp);             //画三角形             sp.graphics.drawPoly(30, 28, [0, 100, 50, 0, 100, 100], "#ffff00");                        }     } } ``` 代码运...

来源: Laya2.0_文档 发布时间: 20210714

25. Laya截图3D场景相关模型,导致模型透视! [ 86%]

...bin/res/modles/role_48_lurenyi/role_48_lurenyi.lh"; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.position = new Laya.Vector3(0, 0, 10); camera.transform.rotate(new Laya.Vector3(0, 180, 0), true, false); camera.orthogra...

来源: Laya_社区 发布时间: 20180503

26. convert3DCoordTo2DScreenCoord 当3dcamera有旋转的情况下,转换出来的坐标不正确 [ 86%]

...况下,转换出来的坐标不正确 _scene3d = new Scene(); Laya.stage.addChild(_scene3d); _camera3d = new Camera(0, 0.1, 300); _scene3d.addChild(_camera3d); _camera3d.transform.translate(new Vector3(0, 0, 150)); _camera3d.clearColor = null; _camera3d.orthographicProjection = true; _camera3d.tra...

来源: Laya_社区 发布时间: 20161226

27. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 85%]

...Info.width; this._body.height = this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUSE_OVER, this, this.__onMouseOverHole); this.on(Event.MOUSE_OUT, this, this.__onMouseOutHole); } this.pos(this._objectInfo.templateInfo.x, this._objectInfo.templateInfo.y); } private __o...

来源: Laya_社区 发布时间: 20180308

28. 怎么像canvas那样做到每次循环去清空一次画布,我发现每次画的时候他会把上一次的坐标也画出来,导致变形了,该如何让他每次累加的同时清空上次的路径 [ 84%]

....WebGL); var bg = new Laya.Sprite(); bg.loadImage("comp/hunter.jpg"); this.addChild(bg); Laya.timer.frameLoop(1,this,this.move); // drawSomething(); } move() { sp = new Laya.Sprite(); Laya.stage.addChild(sp); //画曲线 if(x<100){ x++; } sp.graphics.clear(); sp.graphics.drawCurves(10, 58, [x, 0,...

来源: Laya_社区 发布时间: 20190520

29. 绘制直线与折线(JavaScript-LayaAir基础篇(JS)-矢量图) [ 84%]

...    {         sp = new Sprite();         Laya.stage.addChild(sp);         //画直线         sp.graphics.drawLine(10, 58, 167, 58, "#ff0000", 5);     } })(); ``` 发布后如下图所示,我们画了一条红色的直线。 ​ ![blob.png](img/2.png...

来源: Laya2.0_文档 发布时间: 20210715

30. View可以addChild Sprite3D对象吗 [ 84%]

View可以addChild Sprite3D对象吗 2d显示对象里可以addchild添加sprite3d对象吗? 2019-03-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: 不可以  必须有一个scene3D  ...

来源: Laya_社区 发布时间: 20190306