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

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

451. 请问UI之间的场景切换要怎么写 [ 70%]

...} return sg_index; })(ui.sg_indexUI); Laya.init(1350,760,Laya.WebGL); Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignH = "center"; Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = "horizontal"; Laya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,La...

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

452. URL的代码修改建议 [ 70%]

...动生成的ui代码报错 移植了一个游戏 代码重新 写的 修改stage的scale后,会发生异常情况 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊...

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

453. laya.ui.ScaleBox_API3.0 [ 70%]

...ox 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Hierarchy Box ScaleBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx ...

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

454. laya.media.VideoNode_API3.0 [ 70%]

...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize duration ended error filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY muted numChildren parent paused pivotX pivotY playbackRa...

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

455. laya.ui.UIComponent_API3.0 [ 70%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

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

456. 鼠标交互-修正交互区域 [ 70%]

...Region { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...

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

457. Cannot read property 'toDefault' of undefined报错是什么原因 [ 70%]

...r.call(state); //从屏幕空间生成射线 this.point.elements[0] = Laya.stage.mouseX; this.point.elements[1] = Laya.stage.mouseY; this.camera.viewportPointToRay(this.point, this.ray); //11111111111111就是下面这句报错 Laya.Physics.rayCast(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); ...

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

458. laya.device.media.Video_API3.0 [ 70%]

...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize duration ended error filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY muted numChildren parent paused pivotX pivotY playbackRa...

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

459. stage.clientScaleX/Y这个值有什么用呢? [ 70%]

stage.clientScaleX/Y这个值有什么用呢? Laya.stage.scaleMode无论怎么设, 这两个值都是1.....   我在源码里面console发现计算了两次屏幕的缩放比.... 第二次就有我想要的值了....  这是为什么呢?? 附件 : --> 2017-08-18 添加评论 免费帖 --> 分享 ...

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

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

...Font { constructor() { const  Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat;   // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL);   Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER;   Laya.st...

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