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

大约有 165 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0038 秒)

131. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 58%]

...script private function init():void { //加载场景 Laya.loader.load('res/atlas/comp.atlas',Handler.create(this,onComplete)); } private function onComplete():void{ //获取图集中的一个单图 var a:Texture = Laya.loader.getRes('comp/button.png'); //通过单图的bitmap对图集加锁 a.bitmap...

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

132. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 58%]

... ```typescript private init():void { //加载场景 Laya.loader.load('res/atlas/comp.atlas',Laya.Handler.create(this,this.onComplete)); } private onComplete():void{ //获取图集中的一个单图 var a = Laya.loader.getRes('comp/button.png') as Laya.Texture; //通过单图的bitmap对图集加锁 ...

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

133. 发现TimeLine的一些问题,像是BUG [ 58%]

...); Stat.show(); //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 Laya.stage.bgColor="#353535"; sp1=createSprite(50,50);//创建方块1 sp2=createSprite(250,50);//...

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

134. 基础文本 · LayaAir3.0文档 · LAYABOX [ 58%]

...所示: 语法结构 示例代码 语句说明 [img]image_url[/img] [img]atlas/comp/image.png[/img] 显示一张图片 [url=link_href]text[/url] [url='www.layabox.com']蓝亚盒子[/url] 显示一个超级链接 [b]text[/b] [b]这些字是粗体[/b] 设置文本为粗体 [i]text[/i] [i]这些字...

来源: Laya3.0_文档 发布时间: 20230830

135. 取色器组件 · LayaAir3.0文档 · LAYABOX [ 58%]

... export class UI_ColorPicker extends Laya.Script { private skin: string = "atlas/comp/colorPicker.png"; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then( ()=>{ this....

来源: Laya3.0_文档 发布时间: 20231129

136. laya.net.Loader [ 57%]

...(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getAtlas(url:String):Array[static] 获取指定资源地址的图集地址列表。 Loader  getRes(url:String):*[static] 获取指定资源地址的资源。 Loader  getTypeFromUrl(url:String):String[static] 获取指定资...

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

137. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 57%]

...; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代...

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

138. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 56%]

...源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按下时,动画效果...

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

139. 关于LayaAir IDE使用工具图集打包无生成文件的问题 [ 56%]

...a_15.png R 1375BB85 chara_16.png     未见生成合成的png文件以及atlas 或 json ,请问如何处理, ide版本号1.7.11beta   附件 : --> 2017-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 8 个回复 w...

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

140. 错误' message: 'Module 'laya.d3.core' has no exported member 'particle'.' at: '4252,38' source: '' [ 55%]

...:转换失败---chitianshishoux--加载错误,xxx/xxx/chitianshishoux.atlas lose skin comp/button.png 错误,全部按照UI案例来的呀 空项目的情况下面ios打包出现链表错误 Laya.MathUtil.getRotation接口说明注释错误 Mask显示错误 自定义组件在ui编辑器上正...

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