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

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

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

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

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

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

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

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

645. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 49%]

...function():void{ beginLoad(); }); private function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); }  以上是子域项目...

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

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

647. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 49%]

...init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr...

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

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

649. 关于Pivot和Mask联合使用时的显示问题再次提交 [ 49%]

...showall";         Laya.stage.bgColor = "#232628";         Laya.loader.load("../../res/bg2.png", Handler.create(this, setup));     })();     function setup()     {         var bg = new Sprite();         bg.loadImage("../../res/bg2.png");         Laya.stage.addCh...

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

650. 微信小游戏中iPhoneX的适配问题 [ 48%]

...uot;../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.a...

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