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

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

241. laya.ui.Box_API3.0 [ 69%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage dra...

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

242. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 69%]

...ivate index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动画模板 this.templet = new SpineTempletBinary(); this.templet...

来源: Laya2.0_文档 发布时间: 20210715

243. 鼠标交互-自定义事件 [ 69%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, 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() { this.createSpr...

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

244. 或者换一个问法.... 我怎么才能获取整个stage适配屏幕后的x, y方向上的scale值呢? [ 69%]

... 赞同来自: 自己计算,在适配前后获取Browser.width和Browser.height,求其比值即可! 2017-08-18 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 godssl 相关问题 两个对象new了一个相同的对象,调用第...

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

245. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 69%]

...// 不支持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";   this.loadFont(); }   loadFont() { const  B...

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

246. laya.ui.Clip [ 69%]

...每个切片的宽度 clipWidth 、竖向分割每个切片的高度 clipHeight , 从左向右,从上到下,分割组合为一个切片动画。 Image和Clip组件是唯一支持异步加载的两个组件,比如clip.skin = "abc/xxx.png",其他UI组件均不支持异步加载。 Public Pro...

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

247. laya.media.VideoNode_API3.0 [ 69%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode buffered cacheAs components currentSrc currentTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize durat...

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

248. laya.ui.OpenDataContextView_API3.0 [ 69%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOpt...

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

249. laya.ui.UIComponent_API3.0 [ 69%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOpt...

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

250. laya.ui.LayoutBox_API3.0 [ 69%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInSta...

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