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

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

701. Unity3d导出的资源,用layadcc,只有.lh文件能用缓存,.lh依赖的资源始终download。 [ 49%]

...er/tower_111002/tower_111002.lh)   2、加载这个资源 (使用Laya.loader.create,参阅附件工程)   3、使用layadcc (反正也没人回答,附件暂时删除了)   4、发现tower_111002.lh 这个资源显示  found the file in the package   5、发现tower_111002.lh 这...

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

702. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 49%]

... ```typescript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //...

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

703. textinput(type=password)手机打开华为安全键盘后,无法关闭(官网的例子) [ 49%]

..../res/ui/input (3).png", "../../res/ui/input (4).png"];         Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资源。     })();     function onLoadComplete()     {         for (var i = 0; i < skins.length; ++i)         {             v...

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

704. 模拟器分辨率问题 [ 49%]

...候,会出现stage的宽高变化了:   printScreenInfo("aaa"); Laya.loader.load(resArr, Handler.create(this, this.onResLoaded, [this.mainuiView, winName, zOrder])); printScreenInfo("bbb"); private onResLoaded(parent:Laya.Node, winName:string, zOrder:number):void {     printScreenInfo("ccc");...

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

705. 设置自动竖屏后 打包APP 安装到手机后显示黑屏 不设置自动竖屏又正常 [ 49%]

...],建议开始页面单独建立文件夹打包)             Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart));                                   } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

706. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 49%]

...图集。 ```java //加载图集成功后,执行onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```java //创建一个Animation实例 var tl:Animation = new Animation(); //加载动画文件 tl.lo...

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

707. 怎么获取手机相册内容 [ 49%]

...(500,500);//初始化引擎 var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对...

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

708. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 48%]

...72:13)     at http://127.0.0.1:53462/game/code.js:97630:17     at Laya.loader.load.Handler.create (http://127.0.0.1:53462/game/code.js:102231:13)     at Handler.__proto.runWith (http://127.0.0.1:53462/game/code.js:711:59)   查看了应该是微信自带的浏览器内核不支持Function.app...

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

709. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 48%]

...;     } }); (function loadUI() {     var curStateIndex = 0;     Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () {         var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "正常模式"));   ...

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

710. 分享一个Shader版的CoolDown实现 [ 48%]

...渲染效果   alpha遮罩   用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); -----...

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