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

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

1271. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 50%]

...来自: 星星 loader支持加载Arr序列加载 var altsArr:Array=[ {url:"res/atlas/comp.atlas", type:Loader.ATLAS}, {url:"bitmapFont/timeFont.fnt", type:Loader.FONT}, {url:"bg/hallroom-bg.png", type:Loader.IMAGE}, {url:"bg/hallrom.json", type:Loader.JSON}, ]; Laya.loader.load(altsArr, Handler.crea...

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

1272. 请问如何释放atlas和他的png资源 [ 50%]

...个有什么规律吗 坐等! private function clickFun():void { url = "res/CH/atlas/MORNUI_Z_Gongneng.atlas"; Laya.loader.load(url,new Handler(this,hh)); //trace( Laya.loader.getRes(url) ); } private function hh():void { Laya.stage.addChild(new Image("MORNUI_Z_Gongneng/clip_xue_quan.png")); Laya....

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

1273. 请问使用HTMLDivElement,<span>标签如何支持style = "visibility:hidden"? [ 50%]

...Element();         Laya.stage.addChild(p);         p.href = "../../res/html/test.html";         p.y = 200;     } })();现在需要用到span标签的visibility:hidden属性,但是试验了下,没有这个功能 2017-03-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

1274. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 50%]

...ic function TestTTFLoader()  { Laya.init(1000, 900);   Laya.loader.load("res/remember.ttf",new Handler(this,test)); }   private function test():void { var text:Text; text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.pos(100, 100); Laya.stage.addChild(text);...

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

1275. Image属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 50%]

...8"; this.setup(); } private setup(): void { var dialog: Image = new Image("res/ui/dialog (3).png"); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } } } new laya.UI_Image(); ```

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

1276. [闪退!!!][崩溃!!Crash]LayaNative 2.8.0 js 调用 oc 同步方法,有返回值的时候崩溃 [ 50%]

...),             @"state" :@(1)         }     };     NSString *res = [JSBridge convertToJsonData:dict];          dispatch_async(dispatch_get_main_queue(), ^{         AppDelegate * appDelegate = (AppDelegate*)[UIApplication sharedApplication].delegate;         [appDelegate.la...

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

1277. "Background is not defined"怎么会没定义呢???求救 [ 50%]

... Background.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("res/background.png"); this.addChild(this.bg1); } Laya.class(Background,"Background",_super); window.Background=Background; return Background; })(Laya.Sprite); 2017-04-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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

1278. Sprite中的width,height和size(width,height)感觉没作用啊 [ 50%]

... Init(){ Laya.init(800,600); bg = new laya.display.Sprite(); bg.loadImage("res/bg.png"); bg.pos(0,0); bg.width = 100; bg.height = 100; bg.size(100,100); Laya.stage.addChild(bg); } 2016-07-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

1279. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 50%]

...on文件需要指定资源类型,例如:Laya.loader.load([{ url: &quot;res/atlas/comp.json&quot;, type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

1280. [Laya2.0beta3] 3d模型克隆后 都不显示了 [ 50%]

...复 Laya_Xq 赞同来自: B型血人 layaMonkey = scene.addChild(Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")) as Sprite3D; //克隆sprite3d layaMonkey_clone1 = Sprite3D.instantiate(layaMonkey, scene, false, new Vector3(0.6, 0, 0)); //克隆sprite3d layaMonkey_clone2 = scene.ad...

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