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

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

431. [LayaAir3]Laya.loader.loadPackage 加载勾选版本管理的子包失败 [ 51%]

...程吧。 2024-11-01 0 1 分享 微博 QZONE 微信 雄二 赞同来自: const { regClass, property } = Laya; @regClass() export class StartScene extends Laya.Script { onAwake(): void { Laya.timer.once(1000, this, () => { Laya.loader.loadPackage("common", "http://127.0.0.1:2840", (p) => { cons...

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

432. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 51%]

...t laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; private var apeTexture:Texture; public function Main() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV =...

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

433. laya.ui.UIEvent [ 51%]

...All Classes | Index | Frames No Frames UIEventProperties | Methods | Constants Packagelaya.uiClasspublic class UIEventInheritanceUIEvent Event Object UIEvent 类用来定义UI组件类的事件类型。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Prope...

来源: laya_api 发布时间: 20170929

434. 关于LayaAir.d.ts生成的建议 [ 51%]

...持一致,比如对于Date声明为: interface Date { } interface DateConstructor { } const Date: DateConstructor; 这样应用可以针对引擎层的一些类通过修改prototype打一些便利性的补丁,同时扩展interface的定义,保证应用层typescript的类型识别。 2017-07-...

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

435. [LayaAir3]打包webgl包,如何设置在手机上打开时,把手机变成横屏 [ 51%]

...赞同来自: 下面图片是手机上效果 这代码是设置横屏    const isMobile = Laya.Browser.onMobile;          if (isMobile) {             // 移动设备使用固定宽高比适配             Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL;             Laya.stag...

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

436. layaair2-cmd compile 有bug [ 51%]

...ing directory changed to /usr/local/lib/node_modules/layaair2-cmd fs.js:27 const { Math, Object } = primordials;                          ^ ReferenceError: primordials is not defined     at fs.js:27:26     at req_ (/usr/local/lib/node_modules/layaair2-cmd/node_modules/natives/index....

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

437. 特效LOADED监听不到 [ 51%]

...utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private const AniConfPath:String = "fighter/fighter.json"; public function LayaAirDemo() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE;...

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

438. [LayaAirIDE3]3.2.7 在抖音小游戏开启了严格模式(ES6),Android性能明显下降了 [ 51%]

...e的情况下保持 Android 高性能,要用对 ES6(利用 class、let/const、箭头函数、Map/Set 等能触发优化的特性),避免 async/await、解构、展开运算符等在低端机解释执行很重的语法,同时减少对象分配和 GC 压力。   2025-09-03 0 1 分享 微...

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

439. laya字体渲染闪退 [ 50%]

.../lib/arm64/liblayaair.so (laya::JSTextMemoryCanvas::getTextBitmapData(char const*, int, int, int)+48)   附件 : --> 2023-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 8 个回复 lv 赞同来自: 字体文件发下 2...

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

440. laya.ui.VBox [ 50%]

...sses | Index | Frames No Frames VBoxProperties | Methods | Events | Constants Packagelaya.uiClasspublic class VBoxInheritanceVBox LayoutBox Box Component Sprite Node EventDispatcher Object VBox 是一个垂直布局容器类。 Public Properties Hide Inherited Public Properties Show Inherite...

来源: laya_api 发布时间: 20170929