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

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

201. laya.ui.ProgressBar [ 71%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array...

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

202. 求助关于尺寸大小适配问题 [ 71%]

...放。。。   因为laya.init的时候我可以根据laya.browser.width/(height)来根据实际尺寸设置,但是UI编辑器里做的UI并不可以,然后他们是会怎么处理? 2016-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

203. laya.map.TileAniSprite_API3.0 [ 71%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX g...

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

204. 限制区域拖动效果,为什么会无法限制呢? [ 71%]

...on(); this.golfBall.x = Laya.stage.width / 2; this.golfBall.y = Laya.stage.height / 2; this.golfBall.on(Event.MOUSE_DOWN, this, onStartDrag)  function showDragRegion() { //拖动限制区域 var dragWidthLimit = 350; var dragHeightLimit = 200; dragRegion = new Rectangle(Laya.stage.width - dragWidth...

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

205. 能详细解释一下Sprite的属性autoSize的使用吗,API解释了但不是很明白,感觉不是很会使用 [ 71%]

...虑,sprite精灵默认是没有宽高的,所以获取sprite的widthheight=0,添加autoSize方法,程序在运行时可以自动计算宽高,得到widthheight的值,但是这样会增加计算量,不建议开发者大量使用。 2017-01-12 0 0 分享 微博 QZONE 微信 为什么...

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

206. 缓动-简单的Tween [ 71%]

...// 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Sprite =...

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

207. laya.particle.Particle2D_API3.0 [ 71%]

...lay autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize emitter filters globalRotation global...

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

208. laya.media.SoundNode_API3.0 [ 71%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY autoPlay blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globa...

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

209. laya.map.GridSprite_API3.0 [ 71%]

...ation mouseThrough name relativeX relativeY tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX g...

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

210. 圆环不跟随 sprite 一起缩放? [ 71%]

...序入口 class GameMain{ constructor() { Laya.init(Browser.width, Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya.Sprite; private _pointList : Point[]; private _rootSp : Laya.Sprite;  public CreateCircle() { this._rootS...

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