大约有 292 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(103) Laya3.0_api(62) Laya2.0_api(57) laya_api(53) Laya2.0_文档(9) Laya2.0_示例(4) Laya3.0_文档(3) Laya_示例(1)
...`var sp = new Laya.Sprite();` 3. `//将sp内部引用设置为null` 4. `sp.destroy();` 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配(而不是对象删除)会触发垃圾回收。 垃圾回收期...
来源: Laya2.0_文档 发布时间: 20210715
...tTime * 1000, null, Laya.Handler.create(this, function() { isSceneAnimMask.destroy(); }) ); 我是这样写的,就同步了 Laya_Aaron • 2018-05-24 17:30 我现在看一下,稍后答复。 Laya_Aaron • 2018-05-24 17:37 这个项目不全吧,少东西,无法运行 上官天源 • 2018-05-2...
来源: Laya_社区 发布时间: 20180524
...不再使用问题贴图的重用,否则会有内容清理问题 this.destroy(); return; } static getTextTexture(w: number, h: number): TextTexture { // 不再回收 return new TextTexture(w, h); } 2020-03-02 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 可以传个...
来源: Laya_社区 发布时间: 20200302
...tom cacheAs centerX centerY color components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize editable filters fitContent focus font fontSize globalRotation globalScaleX globalScaleY graphics gray hScrollBar hScrollBarSkin height hideFlags...
来源: Laya3.0_api 发布时间: 20231115
....Sprite = new Laya.Sprite();` 3. `//将sp内部引用设置为null` 4. `sp.destroy();` 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配(而不是对象删除)会触发垃圾回收。 垃圾回收期...
来源: Laya2.0_文档 发布时间: 20210715
... a、Laya.stage.removeChild b、Loading.destroy c、loading.visible = false; 5、出现错误现象: Sprite无法创建,console给出的错误提示为: Uncaught TypeError: tex.once is not a function at Graphic...
来源: Laya_社区 发布时间: 20171015
...,使用大括号可以指定组件的任意属性进行赋值。 Slider destroyed : Boolean[只读]是否已经销毁。对象销毁后不能再使用。Node disabled : Boolean 是否禁用页面,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] ...
来源: laya_api 发布时间: 20170929
...IPT> Laya.Handler.create和new Laya.Handler有啥区别 Dialog和View用destroy和Laya.stage.removeChild有什么区别? GradientDataNumber warning是什么 2.10.0版本中代码编译器模式下为什么会自动打开Visual Studio Code,有什么办法设置在LayaAir上面编辑代码? 请...
来源: Laya_社区 发布时间: 20180426
...ite(); sp.texture = res; Laya.stage.addChild(sp); setTimeout(() => { sp.destroy() }, 1000); });重现代码如上,代码很简单。 下面是打印了Laya.Resource._idResourcesMap的截图 工程见附件,也很简单就是官方的2d Demo加了上面的代码 附件 : --> LayaProject2...
来源: Laya_社区 发布时间: 20231130
...,使用大括号可以指定组件的任意属性进行赋值。 Slider destroyed : Boolean[只读]是否已经销毁。对象销毁后不能再使用。Node disabled : Boolean 是否禁用页面,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] ...
来源: laya_api 发布时间: 20170929