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

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

571. 请问Laya怎么解析服务器获取的json字符串,使用JS [ 69%]

...s": [         {             "name": "Google",             "url": "http://www.google.com"         },         {             "name": "Baidu",             "url": "http://www.baidu.com"         }     ] }   烦请大神给出解析代码,JS版哦 2017-07-19 添...

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

572. JS的WebGL模式下使用Laya.Video报跨域错误 [ 69%]

JS的WebGL模式下使用Laya.Video报跨域错误 测试源码var video_url = 'http://test_domain.com/resource/2.webm'; var video = new Laya.Video(); video.on('loadedmetadata', this, function() { console.info(video.width + ',' + video.height); Laya.stage.addChild(video); video.play(); }); video.lo...

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

573. laya.d3.core.light.SpotLight [ 69%]

...Node transform : Transform3D[read-only] 获取精灵变换。 Sprite3D url : String 获取资源的URL地址。 Sprite3DPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  SpotLight() 创建一个 SpotLight 实例。 SpotLight _getSortID(renderElement:I...

来源: laya_api 发布时间: 20170929

574. laya.device.media.Video播放视频的问题 [ 69%]

...画面,画面需要手动设置渲染吗?  //获取视频地址 let url = '---'; let videoPlayer: Video = new Video(); videoPlayer.load(url); videoPlayer.play(); let videoChecker = setInterval(function () { if (videoPlayer.ended) { //请求奖励 console.log('请求奖励'); clearInterval(video...

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

575. Native1.0.1 无法连接wss [ 69%]

....1 无法连接wss 如题, Naitve无法连接wss 示例代码如下: const url = "wss://xxx.com:8888"; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess); this.socket.on(Laya.Event.CLOSE, this, this.onDisonnect); t...

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

576. Not FoundLayaAirIDE_1.7.10_beta 無法下載 [ 69%]

Not FoundLayaAirIDE_1.7.10_beta 無法下載 The requested URL /download/LayaAirIDE_1.7.10_beta.zip was not found on this server.   The requested URL /download/LayaAirTS_1.7.10_beta.zip was not found on this server.   麻煩提供檔案到外網,好讓其他開發者下載。 2017-08-29 添加...

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

577. Button等组件lose skin的问题 [ 69%]

...信 hzzzo 赞同来自: 你可以看一下DEMO,在设置了基础路径URL.basePath之后,之前预加载的本地资源会失效。而预期的效果应该是加了基础路径之后不会影响到本地白名单中的资源 2019-10-24 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这...

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

578. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 69%]

...助对象 ```typescript // gltf 模型文件 gltfFile: any = { skeleton: { url: "res/skeleton.gltf", type: Loader.JSON }, face: { url: "res/face.gltf", type: Loader.JSON }, eyes: { url: "res/eyes.gltf", type: Loader.JSON }, ... } // 装扮配置文件 makeupjson: any = { blusher: { cfg: "res/self/gl...

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

579. 动画实例在调用含有名字参数的时候获取不到边界 [ 69%]

...aded(){ for(let i in this.playerUnit){ Laya.Animation.createFrames(this.aniUrls("stand",4),"player"+i+"stand") //this.playerUnit[i].play(0,true,"player"+i+"stand"); this.playerUnit[i].play(); let bounds = this.playerUnit[i].getGraphicBounds(); this.p...

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

580. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 68%]

...  /**     *@inheritDoc     */   __proto.onAsynLoaded=function(url,data,params){     var json=data[0]     if (json.type!=="Scene"){ if (url == "scene/Demo_Interiors.ls"){ console.log(data[0]); throw new Error("Scene: the .lh file root type must be Scene,please use other function t...

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