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

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

321. laya.ui.AutoBitmap_API3.0 [ 69%]

...度。 Returns DrawCircleCmd drawCurves drawCurves(x: number, y: number, points: any[], lineColor: any, lineWidth?: number): DrawCurvesCmd Inherited from Graphics.drawCurves Defined in laya/display/Graphics.ts:516 绘制一系列曲线。 Parameters x: number 开始绘制的 X 轴位置。 y: number...

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

322. 如何动态获取image的宽高? [ 69%]

如何动态获取image的宽高? var thisp:Point=new Point((this.width*this.scaleX)/2,(this.height*this.scaleY)/2); //thisp=this.globalToLocal(this.localToGlobal(thisp)); //trace(thisp.x,thisp.y,"dddddddd") var tf:Matrix=new Matrix(); tf.translate(-thisp.x,-thisp.y); __jd+=jd; tf.rotate(__jd); t...

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

323. LAYABOX读取贴图的时候 是否可以更改 列如 UNITY 里的 Filter Mode 采样模式 [ 68%]

...TY 里的   Filter  Mode  采样模式   个人想将部分贴图 用Point方式采样  不知道改如果编写  附件 : --> 2020-02-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来...

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

324. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 68%]

...本地坐标转换             public function global2Content(p:Point):Point             {                 return this.cab.globalToContent(p);             }         ]]>     </mx:Script> </mx:Canvas> 转换过程 mx.containers.Canvas报...

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

325. laya.display.Animation_API3.0 [ 68%]

...ToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform get_visible get...

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

326. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...= pos; let paths = agent.getCurrentPath(); if (paths.length >= 2) { let points: any = [] paths.forEach((point) => { points.push(point.pos.x, point.pos.z); }); this._temp.graphics.drawLines(0, 0, points, "#00000030", 5); } }) this.hit.pos(pos.x, pos.y); } } 这样,鼠标点击的位置就是...

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

327. [0]LayaAir 3.0.0-beta.6 unity资源导出工具导出场景没有光照贴图 [ 68%]

...图  请问是我操作问题还是其他问题 , 另 laya3.0 beta 6  point light 的bake 模式烘焙没有效果 请问什么情况 附件 : --> 2023-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 少...

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

328. 修复开放数据域组件WXOpenDataViewer鼠标不能拖动的问题 [ 68%]

...改的地方,转换成全局坐标             var p: Laya.Point = this.localToGlobal(new Laya.Point());             mat.translate(p.x, p.y);             var stage: Laya.Stage = Laya.stage;              mat.scale(stage._canvasTransform.getScaleX() *...

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

329. [LayaAir3]3.3.0.beta.2 2d刚体position问题 [ 68%]

...ayaAir3]3.3.0.beta.2 2d刚体position问题 刚体的position类型是Laya.Point,可以给其赋值new Laya.Point(),但是无法获取到position的x和y。 另外刚体position的值也有点怪,和所挂载Sprite的xy相对于父物体坐标不同,更像是相对于屏幕坐标。 假设父...

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

330. 有关Laya3D碰撞检测疑问 [ 67%]

...ew Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); private point: Laya.Vector2 = new Laya.Vector2(); private _outHitAllInfo: Array<Laya.RaycastHit>;  private camera: Laya.Camera; private label: Laya.Label; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.St...

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