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

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

141. 图片资源引用 [ 73%]

... │   └── ItemYouren.js └── ui ItemDizhuquan.js代码如下 this.btnThumpUP = new Laya.Button("/bin/happyfarm/dianzan.png"); 尝试了,各种路径,都提示加载不到图片,求解 2017-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

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

...nd {  //声明一个信息文本 private txtInfo: Text;  constructor() { this.setup(); }  private setup(): void { var gap: number = 10;  //创建一个Sprite充当音效播放按钮 var soundButton: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width...

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

143. 我照着例子做的换装例子切换不了卡槽的图片,附件为我的demo,请帮忙看看 [ 73%]

...子切换不了卡槽的图片,附件为我的demo,请帮忙看看 if (this.currTexture && Render.isWebGL && this.currDisplayData.type==0 && this.currDisplayData.uvs){ this.currTexture=this.currDisplayData.createTexture(this.currTexture); } 跟代码发现this.currDisplay...

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

144. 相机(3D物体)旋转之后,xyz还是之前那个方向 [ 73%]

...)旋转之后,xyz还是之前那个方向 没旋转之前走动正常 this.camera.transform.localRotation先旋转 this.camera.transform.translate(this._tempVector3,false); 再移动 控制y轴向前走,斜着走或者是后面走,反正不正常   2020-09-09 添加评论 免费帖 --> 分...

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

145. 求助!wss在native中无法连接 [ 73%]

...如下: wss://testconnector.46mp.com:8014  I/LayaBox: new JSWebSocket::this=abc23ac0 deletgate=abb1ba70  I/LayaBox: WebSocket::init m_host: testconnector.46mp.com, m_port: 8014, m_path: /  I/LayaBox: @@@@@ connect testconnector.46mp.com:8014 r W/LayaBox: JSWebSocketDelegate::onError( code=1 )th...

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

146. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 73%]

...存在,内存中场景及引用其的对象无法销毁         this.scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;          this.camera = new Laya.Camera();         this.camera.transform.translate(new Laya.Vector3(0, 2, 5));         th...

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

147. worker的问题 [ 73%]

...接报错了 "Failed to construct 'Worker': Please use the 'new' operator, this DOM object constructor cannot be called as a function." 2018-01-08 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 还要在index.html中写啊,我以为在as3脚本里写就行了? 2018-01-08 0 1 分享 微...

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

148. load 粒子的时候永远出错 [ 73%]

load 粒子的时候永远出错 永远报这个错误:Warning!,this class[MiniAdpter] already exist: Object {} [warn]Retry to load: res/rotate.part [error]Failed to load: res/rotate.part   我的代码:   Laya.loader.load("res/rotate.part", Handler.create(this, this.onAssetsLoaded),null,Laya...

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

149. sk文件加载 [ 73%]

...资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION);         }                  private function beginLoad():void {             //加载引擎需要的资源             // Laya.l...

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

150. Laya2.0文件模式下var变量怎么引用? [ 73%]

...相关的链接 提交 1 个回复 大光电KID 赞同来自: 爱的誓言 this["xxx"]或者 private xxx;this.xxx; 2019-05-19 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 爱的誓言 相关问题 2.0一不小心删了bin目录下的...

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