大约有 537 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0072 秒)
Laya_社区(186) Laya2.0_示例(91) Laya3.0_api(66) Laya2.0_api(60) laya_api(56) Laya_示例(41) Laya2.0_文档(30) Laya3.0_文档(7)
...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array...
来源: Laya2.0_api 发布时间: 20190513
...放。。。 因为laya.init的时候我可以根据laya.browser.width/(height)来根据实际尺寸设置,但是UI编辑器里做的UI并不可以,然后他们是会怎么处理? 2016-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20160804
...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
...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
...虑,sprite精灵默认是没有宽高的,所以获取sprite的width和height=0,添加autoSize方法,程序在运行时可以自动计算宽高,得到width和height的值,但是这样会增加计算量,不建议开发者大量使用。 2017-01-12 0 0 分享 微博 QZONE 微信 为什么...
来源: Laya_社区 发布时间: 20170112
...// 不支持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
...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
...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
...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
...序入口 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