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

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

111. 我想问下如果要调用手机本地相册,能不能用HTMLDivElement?该怎么用 [ 64%]

... stephysun 赞同来自: 假如说类似这种的话可以不? <input type="file" id="file" /> <span>上传文件</span> </label> <canvas width="300" height="300" id="canvas"></canvas> </body> <script> $("#file").change(function (){ var file = new Fi...

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

112. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...需要显示Tips或属性的中文别名等完整功能需求 @property({ type: String, caption: "IDE显示用的别名", tips: "这是一个文本对象,只能输入文本哦" }) public text1: string = ""; //装饰器属性类型的简写方式,适用于只定义类型的需求 @property(String...

来源: Laya3.0_文档 发布时间: 20251010

113. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...wScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此...

来源: Laya3.0_文档 发布时间: 20251010

114. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 63%]

...der(e:MouseEvent,index:int):void { // TODO Auto Generated method stub if(e.type==MouseEvent.CLICK) { if(index==2) { trace("okla") } } } } } 2015-12-24 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 haliluya 相关问题 分享:自定...

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

115. LAYABOX游戏实时语音之APP版本 [ 63%]

...ice.getInstance().startOnlyRecordAudioMessage (mChatRoomId, YIMService.ChatType.RoomChat); } }; new Thread() { public void run() { m_Handler.post(mRunnable0); } }.start(); } private void stopAndSendAudio(){ final Runnable mRunnable0 = new Runnable() { @Override public void run() { YIMService.getInst...

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

116. 释放资源报错 [ 62%]

... 释放unity导入的骨骼动画模型时报错 laya.d3.js:41972 Uncaught TypeError: Cannot read property 'off' of null     at SkinnedMeshRenderer.__proto._destroy (laya.d3.js:41972)     at SkinnedMeshSprite3D.__proto.destroy (laya.d3.js:34884)     at SkinnedMeshSprite3D.__proto.destroy (laya...

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

117. List组件Mousehandler事件 [ 62%]

...你可以在mouseHandler下对鼠标事件进行判断和使用,譬如e.type=Event.CLICK,对事件类型进行判断,然后进行逻辑的实现! 2018-01-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 182*****278 相关问题 ...

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

118. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 62%]

...XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObj...

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

119. LayaFlash把socket转成webSocket后监听不到connect事件(已解决) [ 62%]

...ent):void         {             trace("connectHandler:" + e.type);                                       s.writeUTF("Hello,World!");//这儿改成 writeUTFBytes             s.flush();                  }                    ...

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

120. dcc下载超时 [ 62%]

...t;>>The network has changed 07-04 20:55:27.714: I/0(7884): connected type=1 07-04 20:55:27.715: W/EGL_emulation(7884): eglSurfaceAttrib not implemented 07-04 20:55:27.715: W/OpenGLRenderer(7884): Failed to set EGL_SWAP_BEHAVIOR on surface 0x9bafc7c0, error=EGL_SUCCESS 07-04 20:55:27.752: E/(78...

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