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

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

151. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 65%]

...ne3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Handler.create(this, function (scene: Scene3D): void { //添加到场景 Laya.stage.addChild(scene); var camera: Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); camera.transform....

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

152. 二次开发 异步回调没反应 [ 65%]

...没反应 ts: /**视频广告 */ public static showVideoAd(success: Laya.Handler, type: string): void { if (GameConfig.ins.isDev) { success.runWith(1); return; } var VGUtil = Laya.PlatformClass.createClass("com.szdn.game.fkzy.VGUtil"); VGUtil.callWithBack(back, "showVideoAd", type);  function back(...

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

153. 3D场景环境设置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...nderer; //加载相机天空盒材质 Laya.Material.load("sky2.lmat", Laya.Handler.create(null, function(mat: any) { //修改天空盒渲染器的天空盒材质 skyRenderer.material = mat; })); 2.3 IDE中创建天空盒 2.3.1 更改IDE默认的球形天空盒 当我们用IDE场景一个3D场景时...

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

154. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 64%]

...ndroid) { //注意这里的加载 Laya.loader.load("res/layabox.ktx", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); } else { //注意这里的加载 Laya.Texture2D.load("res/layabox.jpg", Laya.Handler.create(null, function (tex: Laya.Texture2D) { mater...

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

155. 缓动 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...以避免因对象重用而引发的问题。此外,新系统不再使用Handler,从而杜绝了Handler重用带来的混乱。同时,改进后的Tween系统支持更丰富的选项以及串行和并行任务功能,为开发者提供更灵活强大的工具来实现理想的动画效果。 ...

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

156. Laya.loader.create()真机不能加载3D资源,加载图片和音频可以,打开调试也没问题 [ 64%]

...tional/newScen.ls",         ];          //设置progress Handler的第4个参数为true,根据加载文件个数获取加载进度         Laya.loader.create(res,null,Laya.Handler.create(this,this.onProgress,null,false)); 2020-11-30 添加评论 免费帖 --> 分享 微...

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

157. laya.display.Scene [ 63%]

...型是否是鼠标事件。 EventDispatcher  load(url:String, complete:Handler = null, progress:Handler = null):void[static] 加载场景及场景使用到的资源 Scene loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture...

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

158. 我二进制资源load之后,为什么通过getRes获取不到。 [ 63%]

...config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.log('资源加载完成!!',e,a,b); var cfg = Laya.Loader.getRes("config/data.txt"); console.log('...

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

159. Laya.Tween怎么运用到3D对象上? [ 63%]

...ion;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animation...

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

160. Laya.loader.create 不会反馈失败状态跟描述不符合 [ 63%]

...g> = ["scene/Conventional/scene2.ls"] Laya.loader.create(resource, Laya.Handler.create(this, (success:boolean) => { console.log("3d加载完毕:" + success); }),Laya.Handler.create(this, (progress: number) => { })); 这是个数组。。但是场景文件不存在,失败参数都是空的...

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