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

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

1. 如何避开iPhoneX的刘海? [ 100%]

...留黑边,引擎有没有提供快捷的方法? 我试过直接设置Render._mainCanvas.source.style.top但是游戏的下方会超出屏幕 2018-05-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Apple 赞...

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

2. 播放视频只有声音没有图像 [ 82%]

....document.body.appendChild(videoElement); videoElement.style.zInddex =Laya.Render.canvas.style.zIndex + 100; videoElement.controls = false; videoElement.autoplay =true; videoElement.style.width='100%'; videoElement.style.height='100%'; videoElement.autobuffer=true; videoElement.src = "/Users/apple/L...

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

3. 创建[HTMLDivElement]时遇到错误(手动实例一次本组件可定位错误) [ 66%]

...太麻烦了,我直接找到LayaAirIDE\resources\app\out\vs\layaEditor\renders\editorui2.0这个文件,把__class(HtmlText,'laya.editorUI.HtmlText');这句话改成__class(HtmlText,'laya.editorUI.HtmlText',_super);就没问题了

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

4. laya.ui.FontClip [ 56%]

...map"时,canvas模式下进行依然是画布缓存,webgl模式下使用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲...

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

5. laya.ui.FontClip_API3.0 [ 42%]

... cacheAs centerX centerY clipHeight clipWidth clipX clipY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea index interval is...

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

6. 微信小游戏加载资源问题 [ 34%]

...aya.stage._canvasTransform.identity(); ts.scale((Laya.Browser.width / Laya.Render.canvas.width / Laya.Browser.pixelRatio), Laya.Browser.height / Laya.Render.canvas.height / Laya.Browser.pixelRatio); } static wxinputFocus(e) { var _inputTarget = Laya.Input['inputElement'].target; if (_inputTarget &am...

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

7. laya.display.Text_API3.0 [ 27%]

... anchorY bgColor blendMode bold borderColor cacheAs color components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters font fontSize globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea html htmlParseOptions is3D italic leading li...

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

8. laya.ui.ViewStack_API3.0 [ 27%]

... anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D items left mask mouseEnabled...

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

9. laya.display.Input_API3.0 [ 18%]

... anchorY bgColor blendMode bold borderColor cacheAs color components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize editable filters focus font fontSize globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea html htmlParseOptions is3D it...

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