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

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

151. 运行调试layaair后黑屏,用的js [ 69%]

... GameInfo (file:///Users/moos/Company/EmersonGame/src/GameInfo.js:4:18) at onLoaded (file:///Users/moos/Company/EmersonGame/src/Game.js:43:25) at EventHandler.__proto.runWith (file:///Users/moos/Company/EmersonGame/bin/libs/laya.core.js:724:59) at ResInfo.__proto.event (file:///Users/moos/Company/Em...

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

152. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 69%]

... Laya.MiniAdpter.init(true, true); //程序入口 Laya.init(750, 1334);  onLoaded();  /* //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/...

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

153. 引擎的text类中有没有直接读取Json文件的函数 [ 69%]

...) { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("unpack.json"); var str:String=JSON.stringify(json); trace(str); } } } 2017-08-07 0 0 分享 微博 QZONE 微信 为什么被...

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

154. LayaAPP打包后laya.webgl.j错误,浏览器测试没问题 [ 69%]

...roto.event (http://stand.alone.version/lib ... 169:30) at Texture.__proto._onLoaded (http://stand.alone.version/lib ... 5598:8) at EventHandler.__proto.run (http://stand.alone.version/lib ... 393:26) at ResInfo.__proto.event (http://stand.alone.version/lib ... 164:52) at LoaderManager.__proto._endLo...

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

155. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 69%]

...400);             Laya.loader.load("walk.png",Handler.create(this,onLoaded));         }         private function onLoaded():void         {             var texture:Texture=Laya.loader.getRes("walk.png");             //计算好UV,创建新的texture   ...

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

156. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 69%]

...init(700,600); Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { var texture:Texture=Loader.getRes('res/apes/monkey2.png'); var sp:Sprite=new Sprite(); var matrix:Matrix=new Matrix(); matrix.rotate(Math.PI/4); matrix.translate(150,100); sp.gr...

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

157. CheckBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 69%]

...景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load([this.skin1,this.skin2],Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个CheckBox实例cb1 var cb1:Laya.CheckBox = new Laya.CheckBox(this.skin1); //添加...

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

158. ViewStack属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 69%]

... = "full"; Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("./res/atlas/ui.atlas", Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个UI实例 comp = new ComponentDemoUI(); //添加到舞台上显示 Laya.stage.ad...

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

159. 我想问下如果要调用手机本地相册,能不能用HTMLDivElement?该怎么用 [ 69%]

...change(function (){ var file = new FileReader();//读取文件2进制 file.onload = function(e){ var base64 = e.target.result; var img = new Image();//创建一个图片对象 img.onload = function (){ var canvas = $("#canvas").get(0); var ctx = canvas.getContext("2d"); //使用drawImage显示图片...

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

160. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...andler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } } 编译运行代码,效...

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