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

大约有 474 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)

291. sprite点击事件 位置便宜 [ 42%]

...ct.graphics.drawRect(0, 0, 200, 200, "#D2691E"); rect.size(200, 200); rect.pivot(100,100); rect.x = Laya.stage.width /2; rect.y = Laya.stage.height / 2; // let hitArea = new Laya.Rectangle(rect.x-100,rect.y-100,200,200); // rect.hitArea = hitArea; Laya.stage.addChild(rect); //增加鼠标事件 rect...

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

292. 请大家帮助优化一下这个抛物线的代码 [ 42%]

...s.body = new Laya.Sprite(); this.body.loadImage("war/ball.png"); this.body.pivot(12,12); } this.addChild(this.body); Laya.timer.frameLoop(1,this,this.animate); } private animate(e):void{ this.body.rotation += 10; } } class Main{ private ball:Ball; private targetX:number = 600; private targetY:numbe...

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

293. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...age.height >> 1); //位置 this.txt.size(500, 30); //大小 this.txt.pivot(this.txt.width/2, this.txt.height/2); //轴心点 this.txt.text = "大家好,欢迎各位开发者使用LayaAir IDE,这里是Text的文本内容,您可以基于此文本进行调试"; //文本内容 this.txt.font ...

来源: Laya3.0_文档 发布时间: 20251010

294. laya.display.Sprite [ 41%]

...nly] 子对象数量。 Node parent : Node[read-only] 父节点。Node  pivotX : NumberX轴 轴心点的位置,单位为像素,默认为0。轴心点会影响对象位置,缩放中心,旋转中心。Sprite  pivotY : NumberY轴 轴心点的位置,单位为像素,默认为0。轴心...

来源: Laya2.0_api 发布时间: 20190513

295. laya.display.Sprite [ 41%]

...显示筛选会不精确)。 Sprite  parent : Node[override] Sprite  pivotX : NumberX轴 轴心点的位置,单位为像素,默认为0。轴心点会影响对象位置,缩放中心,旋转中心。Sprite  pivotY : NumberY轴 轴心点的位置,单位为像素,默认为0。轴心点...

来源: laya_api 发布时间: 20170929

296. 【Laya2.1BUG】 给view设置runtime后,类型是any [ 40%]

...able=false后过一段时间设置mouseWheelEnable=true;无法滚动 设置pivot后,精灵位置显示位置不正确 新版本菜单栏里文件下拉菜单没有项目设置了。 3d初始化,设置抗锯齿,但是没有效果 问题状态 最新活动: 2019-06-06 12:02 浏览: 3728 关注: ...

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

297. localRotationEulerY旋转位置错误 [ 40%]

...转 一个动画如何设置绕自身中心点旋转,我这么设置_ani.pivot(_ani.width/2,_ani.height/2);不行,而且也没有锚点可以设置,如何实现 元素旋转后,所绑定的事件失效 unity的坐标和旋转转换到laya需要做什么运算 问题状态 最新活动: 2020-...

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

298. 字体切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...ht >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/comp/fontClip_num.png"; this.fontclp.sheet = "0123456789"; this.fontclp.value = "5201314"; this.fontclp.direction = "horizontal"; //...

来源: Laya3.0_文档 发布时间: 20251010

299. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 39%]

... private var pop:TestDialogUI; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; _path2.rotation = Math.atan2(b.y - a.y+300, b.x - a.x) / Math.PI * 180; _path2.pos(a.x,a.y); this.addChi...

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

300. laya.html.dom.HTMLIframeElement_API3.0 [ 38%]

...rea href innerHTML is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache style texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addCom...

来源: Laya3.0_api 发布时间: 20231102