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

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

1. 二次开发(TypeScript-LayaNative原生服务-LayaNative进阶) [ 100%]

...ue ? NO : YES]; } +(void)testAsyncCallback:(NSString*)json { //js thread NSError* error = nil; NSData* jsonData = [json dataUsingEncoding:NSUTF8StringEncoding]; NSDictionary* dict = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:&error]; NSLog(@"OC: %@"...

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

2. iOS-App内购(TypeScript-LayaNative原生服务-LayaNative进阶) [ 72%]

...| order_id | string | 订单ID | | desc | string | 成功"success", 失败"error" | ### 4. 注意事项: iOS的IAP功能并不属于LayaNative引擎的核心功能,此部分代码也是开放的,开发者可以根据自己的需求自行修改,如出现充值问题,LayaBox公司不负责找b...

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

3. 其他(TypeScript-LayaNative原生服务-LayaNative基础文档) [ 70%]

...异常(如网络不稳定),引擎会自动调用到window.onLayaInitError(error)函数,该函数默认在config.js中定义,代码如下: ```javascript window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); alert("加载游戏失败,可能由于您的网络不...

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

4. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 67%]

...Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); this.ske...

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

5. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 66%]

...emplet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private function parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skel...

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