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

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

931. [0]laya-zip让你的游戏加载速度提升350%!! [ 50%]

...: "xx.zip", type:"ZIP",constructParams:["xx/xxx1.lh","xx/xxx2.lh"]}], Laya.Handler.create(this, () => { let player1 = Laya.loader.getRes("xx/xxx1.lh").clone(); let player2 = Laya.loader.getRes("xx/xxx2.lh").clone(); })); [/size][/code]高级 为了根据具体项目来定制压缩包的颗粒度...

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

932. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 50%]

...);   //加载精灵 Sprite3D.load("LayaScene_cu_demo/Conventional/Cu.lh", Handler.create(null, function(sp:Sprite3D):void { cu = scene.addChild(sp) as Sprite3D; cu.transform.rotate(new Vector3(0, -90, 0), true, false); _rb = cu.getComponent(Rigidbody3D) as Rigidbody3D; }));   //施加作用力或...

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

933. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 50%]

...ivate function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); }  以上是子域项目中加载图集和取资源的代码...

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

934. laya.ui.ProgressBar_API3.0 [ 50%]

...加到舞台上。 package { import laya.ui.ProgressBar; import laya.utils.Handler; public class ProgressBar_Example { private var progressBar:ProgressBar; public function ProgressBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景...

来源: Laya3.0_api 发布时间: 20231115

935. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 49%]

...将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } }new Main(); ``` 运...

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

936. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 49%]

...renders.Render;     import laya.utils.Browser;     import laya.utils.Handler;     import laya.utils.Stat;     import laya.webgl.WebGL;     import wawaji.Wawaji;     /**      * ...      * @author zzz      */     public class WWJ_Main      {         private cons...

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

937. 多摄像机窗口的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 49%]

...ya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp){ //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall...

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

938. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 49%]

...ya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall...

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

939. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 49%]

...("Game start"); //加载粒子特效资源 Laya.loader.load(this.filePath, Handler.create(this, () => { })); } //每次鼠标点下屏幕后,会创建一个特效 mouseDown(e: Event): void { var particle = Particle3D.Create(this.filePath); this.owner.addChild(particle); } //鼠标抬起后,...

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

940. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 49%]

...("Game start"); //加载粒子特效资源 Laya.loader.load(this.filePath, Handler.create(this, () => { })); } //每次鼠标点下屏幕后,会创建一个特效 mouseDown(e: Event): void { var particle = Particle3D.Create(this.filePath); this.owner.addChild(particle); } //鼠标抬起后,...

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