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

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

51. Byte二进制读写(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 66%]

...始读入byte中。省略其中的浮点数20.0和整数16 byte.pos = 0;// console.log(byte.readUTFString())//从byte中读出字符串。 ``` - 读取数据 **getByte**():number在字节流中读一个字节。 **getInt16**():number在当前字节偏移量位置处读取 Int16 值。 **getInt32**()...

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

52. RenderTexture: unkonw depth format. [ 65%]

...马灯效果 Sོ • 2018-12-19 23:13 打开laya.webgl.js 注释掉这句console.log("RenderTexture: unkonw depth format.");

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

53. 有关Laya3D碰撞检测疑问 [ 65%]

...体";  Laya.timer.frameLoop(1, this, this.checkHit);  this.loadUI();  console.log("碰撞结果:" + boxCollider1.boundBox.containsSphere(cylinder.meshRender.boundingSphere)); console.log("碰撞结果:" + boxCollider1.boundBox.containsBoundBox(cylinder.meshRender.boundingBox)); console.log("碰...

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

54. 怎么给List下的每个item中的button添加事件? [ 65%]

...;,i*100,800,100,60); btn.id= i; btns.push(btn); this.btnBox.addChild(btn); console.log(btn.id); } for(var i = 0; i < 5; i++){ btns[i].on(Laya.Event.CLICK,this,judge,[i]); } function judge(aa){ console.log("___________"+aa); } 我就是这么做的,结果打印出来全是4,前面的...

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

55. 分享:关于自定义场景继承的实现 [ 65%]

...e base{ export class BaseScene extends Laya.Scene{ constructor(){ super(); console.log('BaseScene:我是基类BaseScene,我的子类是导出类,我的父类是场景类'); } } } 导出UI 导出后layaMaxUI.ts的内容如下/**This class is automatically generated by LayaAirIDE, please do not make...

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

56. tiledMap问题,getTileProperties获取地图属性能获取到 [ 65%]

...ScreenPos(20,20); var pass = this.map.getTileProperties(0,idx - 1,'pass'); console.log('打印=======================================') console.log(idx, pass, this.map['_tileProperties'],this.map['_tileProperties2']); // 30 null {0:undefined} {} } }求官方给个回复 附件 : --> 2DTiled.zip 2019...

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

57. Byte二进制读写(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 65%]

...始读入byte中。省略其中的浮点数20.0和整数16 byte.pos = 0;// console.log(byte.readUTFString())//从byte中读出字符串。 ``` - 读取数据 **getByte**():number在字节流中读一个字节。 **getInt16**():number在当前字节偏移量位置处读取 Int16 值。 **getInt32**()...

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

58. 获取sprite对象的 width和height为0 [ 65%]

....Rectangle = bg.getBounds(); var btBound: Laya.Rectangle = bg.getBounds(); console.log(bgBound.width/2) console.log(bgBound.height - 150) bt.pos(bgBound.width/2 - btBound.width/2,bgBound.height - 150) } } //启动游戏 new Game();打印结果: 0 -150 bgBound.width 和 bgBound.heigt 都为0  2016...

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

59. list 渲染出Text [ 65%]

list 渲染出Text console.log打印出数据,但是没有在游戏上显示出来,头像是现实出来了的,也没报错  是什么原因呢? 附件 : --> 2018-11-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

60. http无响应 [ 64%]

...&password=888888', 'post', 'text'); } function onHttpRequestError(e) { console.log(e); } function onHttpRequestProgress(e) { console.log(e) } function onHttpRequestComplete(e) { this.aaaa.text += "收到数据:" + hr.data; } Laya.class(LoginView,"LoginView",_super); //设置继承关系 //初...

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