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

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

31. Steam扩展实例 · LayaAir3.3 · 引擎文档 · LAYABOX [ 79%]

...接口封装, jsvm_value jsInitializeSteam(jsvm_env env, jsvm_callback_info info) { bool success = SteamManager::GetInstance()->Initialize(); printf("init steam!!!"); jsvm_value result; JSVM_CALL_CHECK(jsvm_create_int32(env, success ? 1 : 0, &result)); return result; } 最后,在LayaExtIn...

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

32. LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 [ 79%]

...onItemUpdate = function(_cell, _index) {     var data = this.mList_.task_info[_index];     if (data) {         _cell.layer_one.visible = (-1 == data.task_id);         _cell.layer_two.visible = !_cell.layer_one.visible;         _cell.height = (-1 == data.task_id ? 80 : 152);       ...

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

33. 在UI类里调用启动类的静态函数失败了 [ 79%]

... this.onLoading)); } static aaa(): void { } private onLoaded(): void { var info = new view.GameInfo(); info.zOrder = 99;//置最顶,这句话不写图层看不见 // info.init(); Laya.stage.addChild(info); } private onLoading(): void { var bj = new BeiJing(); Laya.stage.addChild(bj); } } new GameMai...

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

34. 最新版本Laya QQ玩一玩平台获取QQ头像 显示是一张黑的图片 [ 77%]

...方式,头像还是不能显示。这是打印的信息:level:1,code:1,info1:BK.Image.bkJSImageLoadImage! loadImage failed:/storage/emulated/0/Tencent/MobileQQ//.apollo/game/3458/9CFAF60A5787F4F3940EAE7141B20ABE.png,info2:,info3: 152*****351 • 2018-09-13 20:38 @OneWay: 我是这样写的 var s...

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

35. 陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 [ 77%]

...CHANGE, this, onOrientationChange); function onOrientationChange(absolute, info) { if (info.alpha === null) { addLog("当前设备不支持陀螺仪。"); return; } else if (firstTime && !absolute && !Browser.onIOS) { firstTime = false; addLog("在当前设备中无法获取地球坐...

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

36. laya as发布玩一玩到Xcode工程,编译报错 [ 76%]

...夹下,插上手机,打开手Q,然后编译报错 level=1, code=-1, info1=Execute JS Error![TypeError: this.ctx.transform is not a function. (In 'this.ctx.transform(a,b,c,d,tx,ty)', 'this.ctx.transform' is an instance of RectTransform)]: line = 6253, column = 21, sourceURL = /var/containers/Bu...

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

37. QQ 玩一玩 laya.bkadpter.js (新的版本) 报错 [ 75%]

...官方发给我的新代码替换后了,反而报错了: level=1, code=-1, info1=Execute JS Error![TypeError: Attempting to change the setter of an unconfigurable property.]: line = 1075, column = 24, sourceURL = /Users/tsubasa/Library/Developer/CoreSimulator/Devices/565D33C9-E1BA-42BF-87C3-3282FD83...

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

38. 在 tiledmap 插入一个精灵在上面 [ 75%]

...个图层中。这个图层可以是对象层 也可以是格子 class GameInfo{ private tiledMap: Laya.TiledMap; private sp:Laya.Sprite;   constructor(){   console.info("start");   this.init(); } init():void{   Laya.init(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.H...

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

39. laya.d3.component.staticmesh.StaticMeshBatchManager_API3.0 [ 73%]

...meters renders: MeshRenderer[] Returns StaticBatchMeshRender[] merge merge(info: StaticMeshMergeInfo): StaticBatchMeshRender Defined in laya/d3/component/staticmesh/StaticMeshBatchManager.ts:39 Parameters info: StaticMeshMergeInfo Returns StaticBatchMeshRender Globals "laya/d3/component/staticmesh/S...

来源: Laya3.0_api 发布时间: 20231102

40. 微信小游戏中如何加载XML文件? [ 72%]

...微信小游戏中如何加载XML文件? 使用Laya.loader.load("res/xml/info.xml", Laya.Handler.create(null, onLoadedXML),null,Laya.Loader.XML);来加载xml文件,在网页中能正常加载,在微信小游戏中显示 request:fail invalid url "res/xml/info.xml"。 2018-05-19 添加评论 免...

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