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

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

21. 3D 鼠标检测 错乱 [ 92%]

....d3.js _update方法为 _update() { var i=0,n=0,j=0,m=0; n=this._eventList.length; var cameras=this._scene._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); break ; case ...

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

22. TypeError: Cannot read property 'length' of null [ 92%]

TypeError: Cannot read property 'length' of null layaide2.4.0a场景包含预制体hero.prefab,b场景也包含预制体hero.prefab 在a场景通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)创建对象,同时给对象设置位置,成功 跳转到b场景后,通过Laya.Poo...

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

23. 引擎 TiledMap 居然不支持图块翻转 [ 91%]

...Sprite;                 for (var i = 0; i < this.aniSpriteArray.length; i++) {                     tAniSprite = this.aniSpriteArray[i];                     tAniSprite.show();                 }             }         }         hide () {         ...

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

24. 打包突然不成功。RangeError: Invalid string length at encodeURIComponent () at Function.SMD5.str2rstrUTF8 [ 91%]

打包突然不成功。RangeError: Invalid string length at encodeURIComponent () at Function.SMD5.str2rstrUTF8 救命,突然打包不了。完全不明白,奇奇怪怪的错太多了。求大神指点 2018-12-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

25. laya.d3.physics.shape.CapsuleColliderShape_API3.0 [ 90%]

...k SHAPEORIENTATION_UPX SHAPEORIENTATION_UPY SHAPEORIENTATION_UPZ Accessors length localOffset localRotation orientation radius type Methods clone cloneTo destroy updateLocalTransformations Constructors constructor new CapsuleColliderShape(radius?: number, length?: number, orientation?: number): Caps...

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

26. 关于闭包的问题 [ 90%]

...码 var letterList = ["A","B","C","D"]; for (var z = 0; z < letterList.length; z++){ var letter = new Sprite(); letter.loadImage("../imgs/linkup/" + letterList[z] + ".png", (bg.width / letterList.length) * z, 0, bg.width / letterList.length, bg.height / 2); Laya.stage.addChild(letter); letter.on(...

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

27. WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header [ 90%]

...ou are trying to send If it's larger than 125 bytes you need to encode the length in a different manner i.e you must take the extended payload length into consideration. – Cyclonecode Jul 7 '15 at 10:22 Right, of course, so i need to use the next two (or eight) bytes to store the length instea...

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

28. Shader预编译解决方案 [ 90%]

...();                 for (var i = 0, n = defineNames.length; i < n; i++)                     //将宏定义名称转换为  Laya.DefineDatas                     compileDefineDatas.add(Shader3D.getDefineByName(defineNames));   ...

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

29. socket 的读写数据 [ 90%]

...的读写数据 flash.net.Socket.readBytes(bytes:ByteArray, offset:uint=0, length:uint=0):void 从套接字读取 length 参数指定的数据字节数。从 offset 所表示的位置开始,将这些字节读入指定的字节数组。 flash.net.Socket.writeBytes(bytes:ByteArray, offset:uint=0, le...

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

30. 混合模式-Lighter [ 90%]

...th.floor(bgColorChannels.b); var r = bgColorChannels.r.toString(16); r = r.length == 2 ? r : "0" + r; var g = bgColorChannels.g.toString(16); g = g.length == 2 ? g : "0" + g; var b = bgColorChannels.b.toString(16); b = b.length == 2 ? b : "0" + b; return "#" + r + g + b; } })();module laya { import ...

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