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

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

381. socket通信发送protobuf后服务端是string [ 50%]

socket通信发送protobuf后服务端是string var msgByteArray:WritingBuffer = new WritingBuffer(); message.writeTo(msgByteArray); msgByteArray.position=0; _socket.send(msgByteArray); send之后服务端收到数据之后为string 2016-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

382. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 50%]

... unclepi 赞同来自: 我设置的一个 240x240的动画,代码如下_proto_.onAnimation_BirdSing = function () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBir...

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

383. 刮刮卡效果实现 [ 50%]

...辑器 如下 代码如下 var interactionArea; var ape; var mouseX = 0; _proto.onInit = function(){ this.guaSpr.cacheAs = "bitmap"; ape = new Sprite(); this.guaSpr.addChild(ape); ape.loadImage("WBSign/img_guakaituceng.png"); ape.on(Event.MOUSE_MOVE, this, onMouseMove); interactionArea = new Sprite(...

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

384. Laya.MiniAdpter.sendAtlasToOpenDataContext这个 接口 是不是qq小游戏是不可以使用的 [ 50%]

...会有人回复 问两个小游戏的问题 微信小游戏中不能加载proto文件 Laya.MathUtil.getRotation接口说明注释错误 为什么replace方法貌似没有用?!!?是不是哪里没用对?并不能替换是为什么?? 问题状态 最新活动: 2019-12-12 14:58 浏览: 10...

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

385. 请问socket如何发送protobuf编码后的数据? [ 50%]

请问socket如何发送protobuf编码后的数据? 模仿官方例子的2种发送方式均失败。感谢指点! 附件 : --> 2017-10-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 ...

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

386. 微信小游戏,开放域(排行榜)关闭后再开始游戏与直接开始游戏相比较,掉帧严重! [ 50%]

...面,帧57-60。 以下是关闭排行榜的代码://移除排行榜 _proto.closeCloudStorage = function () { if (LayaSample.refract && Laya.stage.contains(LayaSample.refract)) LayaSample.refract.removeSelf();//折射层移除舞台 if (Laya.stage.contains(LayaSample.spriteLeaderboard)) {...

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

387. 关于UI与3D场景的问题 [ 49%]

... ele 根节点 *@param touchID touchID *@param isLeft 是否为左键 */ __proto.onMouseUp=function(ele,touchID,isLeft){ (isLeft===void 0)&& (isLeft=false); if (!this.enable) return; var preO; var tO; var arrs; var oldArr; var i=0,len=0; var tar; var sendArr; var onMobile=Browser.onMobile; a...

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

388. 从网络上下载的BMP图片二进制数据后,如何赋值给 laya.ui.Image [ 49%]

...如何赋值给 laya.ui.Image      // 下载图片资源 1.bmp     _proto.MyHttpGet = function()      {         var url = "http://192.168.8.35:80/singer/1.bmp";         var req = new laya.net.HttpRequest();         req.on(laya.events.Event.COMPLETE, this, cb_onSuccess);       ...

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

389. stage.clientScaleX/Y这个值有什么用呢? [ 48%]

...些缩放等一些信息修改过来..... PS: 你可以追下core源码__proto.setScreenSize这个方法.... 因为API里面stage里面是暴露了一个叫ClientScaleX/Y的属性的(只读) 我希望这个属性能发挥它本来应该有的效果 ..... 而已.... godssl • 2017-08-18 16:29 @Monic...

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

390. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 48%]

...想在末尾增加,但是每次都给我翻倍的增加,如何解决 _proto.room_xinxi=function(){ this.roombg=new Laya.Image($mj.Curr_Game_ImagePath + "hall/room_bg.png"); this.roombg.pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + ...

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