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

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

201. new Laya.Templet() 时,说这不是一个constructor [ 48%]

...r.getBounds(); //QUESTION=[无法获取图片宽度高度] this.aniFighter.pivot(512/2,304/2);//rectBounds.width/2,rectBounds.height/2); this.aniFighter.pos(Laya.stage.width/2,Laya.stage.height/2); iamnst • 2018-12-12 22:11 在编辑模式下,引入相关类库就可以了 狄 • 2018-11-30 16:...

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

202. ScrollRect设置会引起其他的UI资源无法正在显示 [ 48%]

...); private var arr:Array = []; 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; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i++){ p = new...

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

203. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

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

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

204. 人物行走图动画 [ 47%]

...   console.log(ani.index);  var bounds = ani.getGraphicBounds();  ani.pivot(bounds.width / 2, bounds.height / 2);    ani.pos(Laya.stage.width / 2, Laya.stage.height / 2);  console.log(ani.index);  Laya.stage.addChild(ani);  console.log(ani.index); }   json代码如下 {"frames": [ {  "fil...

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

205. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 45%]

...码 //var texture: Texture = Laya.loader.getRes(this.ApePath); //this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.stage.height / 2; //这里是我加的代码 this.ape.graphics.drawCircle(50, 50, 30, "#ff0000"); this.ape.on(Event.MOUSE_DOWN,...

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

206. localRotationEulerY旋转位置错误 [ 44%]

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

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

207. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...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

208. sprite点击事件 位置便宜 [ 43%]

...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

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

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

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

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

... 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