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

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

971. 为何发生此类报错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

972. 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

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

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

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

974. 输入设备-指南针 [ 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_示例 发布时间: 20251209

975. [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

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

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

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

977. 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

978. 输入设备-指南针 [ 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_示例 发布时间: 20251209

979. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...nMouseClick(): void { //使用Prefab,需要转换根节点为Dialog Laya.loader.load("resources/Prefab2D.lh").then(res => { let dlg: Laya.Dialog = res.create(); dlg.open(); }); } } 运行效果如下: (动图) 二、通过代码创建Dialog 在进行书写代码的时候,免不了通过...

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

980. laya加载unity插件导出的场景 physics3D is not a function [ 59%]

...nction.Laya3D.init (laya.d3.js:14694) at new GameUI (GameUI.ts:34) at SceneLoader.create (laya.core.js:22061) at EventHandler.__proto.run (laya.core.js:1385) at SceneLoader.__proto.event (laya.core.js:1156) at SceneLoader.__proto._checkNext (laya.core.js:15949) at SceneLoader.__proto.onOneLoadComple...

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