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

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

111. laya.physics.PhysicsDebugDraw [ 51%]

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

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

112. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...像素。 2.2.3 锚点 Anchor 在讲解锚点之前需要先知道轴心点Pivot的概念。一个Sprite精灵对象默认的轴心点位于自身的左上角,设置Sprite精灵的位置时默认是以左上角为基准进行定位的。 轴心点是基准点,决定着Sprite在舞台的位置。...

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

113. 点击拖动图片,当鼠标移出再移回舞台中时如何保持点击状态 [ 51%]

...心点为显示对象的中心,显示位置在可拖拽区域之内 sp.pivot(sp.width/2,sp.height/2); sp.pos(250,450); Laya.stage.addChild(sp); //为需要滑动的对象添加down,down下开始move,up时移除move和up事件 sp.on(Event.MOUSE_DOWN,this,onDown); Laya.stage.on(Event.MOUSE_UP,th...

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

114. laya.map.TileAniSprite [ 50%]

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

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

115. laya.display.FrameAnimation [ 50%]

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

来源: laya_api 发布时间: 20170929

116. laya.ui.VBox [ 50%]

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

来源: laya_api 发布时间: 20170929

117. laya.ui.TipManager [ 50%]

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

来源: laya_api 发布时间: 20170929

118. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 50%]

...Texture: Laya.Texture init(){ let rect = this.img.getSelfBounds() this.img.pivot(Math.round(rect.width / 2), Math.round(rect.height / 2)) let bound = this.img.getBounds() this.cacheCanvas = this.img.drawToCanvas(Math.ceil(bound.width), Math.ceil(bound.height), Math.round(bound.width / 2), Math.round...

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

119. laya.ui.HBox [ 50%]

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

来源: laya_api 发布时间: 20170929

120. ReferenceError: Loading_fly is not defined [ 50%]

...ay(0, true, 'loading') this.bounds = this.fly.getGraphicBounds(); this.fly.pivot(this.bounds.width / 2, this.bounds.height / 2); this.fly.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.diango.addChild(this.fly) this.diango.show(); this.diango.popup(); } _proto.onClose = function () { this.di...

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