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

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

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

...失败:       /**     *@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...

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

972. 求HTTP相关的文档或者例子谢谢了 [ 60%]

...      __proto__.checkList=function(){             this.publicloader=new URLLoader();             this.publicloader.dataFormat=/*iflash.net.URLLoaderDataFormat.VARIABLES*/"variables";             this.publicloader.addEventListener(/*iflash.events.Event.COMPLETE*/"comple...

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

973. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 60%]

...Mode="horizontal"; //加载FGUI中的文件 var ProgressBar,resArray; Laya.loader.load([ {url:"res/Public.fui",type:laya.net.Loader.BUFFER}, {url:"res/Public@atlas_ucn9w.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas_ucn90.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas0.png",type...

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

974. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 60%]

...ox; //为天空盒加载贴图文件 skyBox.textureCube = Laya.TextureCube.load("res/skyBox1/skyCube.ltc"); 但发布到微信小游戏时,启动报错,请问是什么问题: gameThirdScriptError Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the ...

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

975. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 60%]

... }             else             {                 new LoadDebugConfig( launchGame );             }         }           public static function showDebug(val:String):void         {             if (debug_txt)             {                 debug...

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

976. 输入设备-指南针 [ 60%]

....alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handler.create(this, init)); })(); function init() { // 创建罗盘 createCompass(); // 创建方位指示器 createDirectionIndicator(); // 画出其他UI drawUI(); // 创建显示角度的文本...

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

977. [0]layaair2-cmd 编译bug [ 60%]

...les/graceful-fs/fs.js:1:37)     at Module._compile (internal/modules/cjs/loader.js:956:30)     at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)     at Module.load (internal/modules/cjs/loader.js:812:32)     at Function.Module._load (internal/modules/cjs/loader.js:724:...

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

978. 如何获取animation的node节点? [ 60%]

如何获取animation的node节点? 参考图示,ani文件load成animation之后 ,我想在代码里面获取node节点并且修改属性,有什么方法,貌似animation对象里面获取不到任何子节点。 附件 : --> 2019-02-15 添加评论 已悬赏15元 --> 分享 微博 QZONE ...

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

979. laya.ani.swf.MovieClip [ 60%]

...oolean 检测指定事件类型是否是鼠标事件。 EventDispatcher  load(url:String, atlas:Boolean = false, atlasPath:String = null):void 加载资源。 MovieClip loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属...

来源: Laya2.0_api 发布时间: 20190513

980. 输入设备-指南针 [ 60%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.createDirectionIndicator(); //...

来源: Laya2.0_示例 发布时间: 20260303