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

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

1041. layabox加载fairygui发布的二进制文件报错 [ 47%]

...{ url:"res/Bag.json", type:Laya.Loader.BUFFER}              ], Laya.Handler.create(this, this.onLoaded));   Laya.core.js   调试log __proto._endLoad=function(resInfo,content){ var url=resInfo.url; //输出//////////////////////////////// console.log("url:"+url); content==null?console.log(...

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

1042. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 47%]

...men/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071...

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

1043. ios微信clone特效会导致特效的mesh无法显示 [ 47%]

...r3(-15, 0, 0), true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { var clonesprite: Laya.Sprite3D = sprite.clone() as Laya.Sprite3D; scene.addChild(clonesprite) as Laya.Sprite3D; clonesprite.transform.localScale = new Laya.Vector3...

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

1044. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 47%]

...件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D...

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

1045. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 47%]

...ad(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } ​ } ​ onComplete(): void { //初始化rank排行榜 var rank = new BigR...

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

1046. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 46%]

...// 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事...

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

1047. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 46%]

...fConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught Reference...

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

1048. Uncaught TypeError: Cannot read property 'props' of undefined [ 46%]

...; //添加3D场景 Laya.Scene3D.load("LayaScene_Laya3D01/Laya3D01.ls",Laya.Handler.create(null,function(scene){ Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera); //移动摄像...

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

1049. 用unity插件导出lh格式文件,再代码中加载使用的问题 [ 46%]

...r scene : Scene3D;             Scene3D.load("res/laya-test.ls",Handler.create(null,function(sp:Scene3D):void{                 scene = Laya.stage.addChild(sp) as Scene3D;             }));   找到对应的示例代码了,但是编译报错。。。。用的...

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

1050. 颜色滤镜 差值变化 [ 46%]

....Tween.to(ColorTool.getInstance(), { persent: 1 }, time * 1000, null, Laya.Handler.create(this, this.setPersent, [0])); }  /** * 颜色改变函数 * @param color 目标色值 * @param lastColor 当前色值 * @param persent 差值 */ public colorFilter(color: number, lastColor: number, persent: nu...

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