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

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

261. 使用localToGlobal方法获取list单元格错误不准确 [ 71%]

... flag ? true : false;     return ele.localToGlobal(point, flag);  }   console.log(box); var targetXY = Utils.localToGlobal(box, false);  console.log(targetXY)       附件 : --> 2017-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

262. 子容器的事件问题 [ 71%]

...(vhvt); vhvt.on(laya.events.Event.CLICK, this, (event: Laya.Event) => { console.log("为什么这里不进来"); }); } /**  * ViewHeadViewTest  */ class ViewHeadViewTest extends Laya.Sprite {     constructor() {         super();         this.graphics.drawRect(0, 0, 1500, 1500, "#0000f...

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

263. 摄像机的viewportPointToRay报错 [ 71%]

...计产生射线方法,通过2D坐标获取与屏幕垂直的一条射线 console.log( PanelMgr.mainCamera); PanelMgr.mainCamera.viewportPointToRay(this.pointRay, this.ray); (this.owner as Laya.Scene3D).physicsSimulation.rayCast(this.ray,this.hitresult); console.log(Laya.MouseManager.instance.mouse...

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

264. 缓动-时间线 [ 71%]

...); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); } function keyDown(e) { switch(e.keyCode) { case Keyboard.LEFT: timeLine.play("turnLeft"); break; case Keyboard.RIGHT: timeL...

来源: Laya_示例 发布时间: 20251209

265. as3字符串截取int的问题 [ 71%]

...g.gamrRoomEnterPower; },function(value){ DConfig.gamrRoomEnterPower=value; console.log(DConfig.gamrRoomEnterPower.length); console.log(DConfig.gamrRoomEnterPower); for (var i=0;i < DConfig.gamrRoomEnterPower.length;i++){ DConfig.gamrRoomEnterPower=int(DConfig.gamrRoomEnterPower[i]); } });[/i] 201...

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

266. [LayaAir3]Pool对象池获取继承对象时会返回基类对象 [ 71%]

... Laya.Script { onStart() { let item1 = Laya.Pool.createByClass(TestClass); console.log('item1:', item1.type); Laya.Pool.recoverByClass(item1); let item2 = Laya.Pool.createByClass(TestClass2); console.log('item2:', item2.type); console.log(item1 == item2); } } export class TestClass { type = 0; } exp...

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

267. list 渲染不出Text [ 71%]

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

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

268. websocket服务端显示连接成功,客户端未进行回调 [ 71%]

...p udp //创建server服务 var server = net.createServer(function (conn) { console.log('new connection is connecting') conn.write('\n hello buddy') }); server.listen(8081, function () { console.log('server is listening') // server.emit('connection'); }); 2019-04-23 添加评论 免费帖 --> 分享 ...

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

269. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 71%]

...tring:string = "./sounds/hit.wav";  private onPlayMusic(e: Event): void { console.log("播放音乐"); SoundManager.playMusic(this.musicString, 1, new Handler(this, this.onComplete)); }  private onPlaySound(e: Event): void { console.log("播放音效"); SoundManager.playSound(this.soundString, 1, ...

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

270. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 71%]

...n ;         }          ws.onopen = function() {             console.log("---open----");             //设置发信息送类型为:ArrayBuffer             ws.binaryType = "string";             if(SocketJS.OnOpenMsg!=null)SocketJS.OnOpenMsg();         }       ...

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