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

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

791. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 49%]

...ource = ["Export/LayaScene_JJF/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));     }     onComplete(){         //创建场景         let scene = Laya.stage.addChild(new Laya.Scene3D());         //创建...

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

792. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 49%]

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

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

793. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 49%]

...est() { //初始化引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffc...

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

794. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 49%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { this.progressBar = new ProgressBar("res/ui/progressBar.png"); this.progressB...

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

795. 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

796. 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

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

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

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

798. 模拟器分辨率问题 [ 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

799. 时间轴动画(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

800. 怎么获取手机相册内容 [ 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