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

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

111. LayaAir2.1.0加载unity的场景必须在游戏初始化加载吗,延迟一帧都不行,不然报异常 [ 54%]

...ntional/Main.ls',Laya.Handler.create(this,(scene:Laya.Scene3D)=> { Laya.stage.addChild(scene);   })); }); }   这样的加载一定包异常,不延时直接在构造函数里,执行加载没问题 2019-07-19 0 0 分享 微博 QZONE 微信 139*****202 赞同来自: 试试看用settimeout呢 ...

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

112. laya.ui.DialogManager_API3.0 [ 54%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX ske...

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

113. laya.ani.swf.MovieClip_API3.0 [ 54%]

...s count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea index is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY playing rotation scaleX scaleY scene scroll...

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

114. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 54%]

... { //初始化引擎 Laya.init(1136, 640, Laya.WebGL); //等比缩放 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1, this, this.onFrame); } onFrame(): void { //如果创建对象时间为100帧间隔后 if (this.cre...

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

115. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 54%]

...: ```typescript //初始化引擎 Laya.init(600, 400, Laya.WebGL); Laya.stage.bgColor = "#ffcccc"; var data = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); ``` 通过data来...

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

116. laya.display.AnimationBase_API3.0 [ 53%]

...s count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea index interval is3D isPlaying mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY s...

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

117. laya.display.FrameAnimation_API3.0 [ 53%]

...s count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea index interval is3D isPlaying mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY s...

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

118. Laya.Video内存泄漏问题 [ 53%]

...ar video = new Laya.Video(); video.loop = true; video.load(blob_url); Laya.stage.addChild(video); video.play(); v = video; Laya.timer.once(5000, this, function() { v.destroy(); }); }顺便提供一个简单的修复方法: laya.device.js Line 623: 增加以下代码while(this.videoElement.childEl...

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

119. laya.spine.SpineSkeleton_API3.0 [ 53%]

...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize externalSkins filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY playState rotation scaleX scal...

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

120. laya.display.EffectAnimation_API3.0 [ 53%]

...s count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize effectClass effectData filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea index interval is3D isPlaying mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY p...

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