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

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

691. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 64%]

...a.net.AtlasInfoManager; import laya.net.ResourceVersion; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.Utils; import laya.d3.core.particleShuriKen.module.StartFrame; import laya.display.Sprite; import ui.BGPageUI; import ui.MonkeyPageUI; public class Main { public function Mai...

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

692. 分享:Dragonbones/Spine的换肤操作 [ 64%]

...head3.png 放置资源目录下 获取texture Laya.loader.load('head3.png',Handler.create(this,onTextureLoaded)); } private var texture:Texture; private function onTextureLoaded():void { texture=Loader.getRes('head3.png'); }整体代码如下package { import laya.ani.bone.Skeleton; import laya.ani.b...

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

693. 微信开放数据域(TypeScript-小游戏适配文档-微信小游戏) [ 64%]

...图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 Laya.MiniAdpter.sendJsonDataToDat...

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

694. 微信小游戏开放域(ActionScript-小游戏适配文档-微信小游戏) [ 63%]

...json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Handler.create(this,function(){ //加载完成 //使用接口将图集透传到子域 MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 MiniAdpter.sendJsonDataToDataContext...

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

695. 音频解码一直遇到这个问题呢,不知道什么原因 [ 63%]

...mo吧。 smile • 2018-05-31 17:36 @Laya_Aaron: Laya.loader.load(assetArr,Handler.create(this,this.gameStart),Handler.create(this,onProgress,null,false)); private var assetArr:Array=[ {url:"sound/bgMusic.mp3", type:Loader.SOUND}, {url:"sound/button.mp3", type:Loader.SOUND}, {url...

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

696. 微信小游戏开放域(JavaScript-小游戏适配文档-微信小游戏) [ 63%]

...图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 Laya.MiniAdpter.sendJsonDataToDat...

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

697. 引用3d物理引擎失败,有文件丢失 Laya3D._physics3D.btVector3 找不到 [ 63%]

...omplete (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:68463:8) at Handler.__proto.run (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:36051:26) at onComplete (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:51721:15) at Handler.__proto.runWith (file:///E:/ycyheroH5/ycyZYWZW/Cli...

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

698. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 63%]

...后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //添加到舞台 Laya.stage.addChild(this.roleAni); } ``` 运行代码,如图5所示。动画已加载到舞台上,默认是未播放状态的。 ![图5](img/5.png) (图...

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

699. 列表嵌套另外一个列表 [ 63%]

...里面的那个list w1114367261 • 2018-05-23 11:57 this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index this.storelist.mouseHandler = new Handler(this,onMouse);//当list被点击时触发 并发送event,index } public function onRender(cell:Box,inde...

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

700. 微信小游戏的50M物理缓存管理(TypeScript-小游戏适配文档-微信小游戏) [ 63%]

...static function downLoadFile(fileUrl:String, fileType:String = "",callBack:Handler = null,encoding:String = "ascii"):void ``` #### 3、清除缓存文件 由于微信小游戏的缓存上限是50M物理空间,所以无论自动管理缓存还是手动管理缓存,达到上限后都需要清理...

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