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

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

951. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 61%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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

952. 同一类型光源互斥的问题报告 [ 61%]

...w Laya.Vector4(0.8, 0.8, 0.8, 0); material.diffuseTexture = Laya.Texture2D.load("images/bg03.png"); box.meshRender.material = material; //平面 var plane = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(15, 15, 1, 1))); plane.transform.position = new Laya.Vector3(0, 0, 0); var material2...

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

953. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 60%]

...那就需要重新导出。 > 新版本骨骼挂点 ```typescript Scene3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)...

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

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

...oolean 检测指定事件类型是否是鼠标事件。 EventDispatcher  load(url:String, atlas:Boolean = false, atlasPath:String = null):void 加载资源。 MovieClip loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并...

来源: laya_api 发布时间: 20170929

955. 微信小游戏中加载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

956. 求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

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

958. 弹窗视图组件 · LayaAir3.0文档 · LAYABOX [ 60%]

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

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

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

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