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

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

2791. LayaNative 是不是不支持3D啊 [ 59%]

...                 s.completeCreate()},n.disposeResource=function(){this._source&&(V.mainContext.deleteTexture(this._so                                             TypeError: Cannot read property 'createTexture' of null                              ...

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

2792. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...ya.loader.load("resources/layabox.png", Laya.Loader.IMAGE).then(() => { this.setMesh2DRender(); }); } // 配置2D网格渲染器 setMesh2DRender(): void { let mesh2Drender = this.layaMonkey.getComponent(Laya.Mesh2DRender); // 添加网格 mesh2Drender.sharedMesh = this.generateCircleVerticesAndUV...

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

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

...取图集内资源报错。 MsgMgr.instance.init(); Laya.timer.once(1000,this,function():void{ beginLoad(); }); private function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new ...

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

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

...3D.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)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture...

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

2795. 体验LayaAir 3.0.0-beta.4遇到的一些问题 [ 58%]

...,编译后正常应该是可以落下的,但是并没有 const rig = this.basketball.getComponent(Laya.Rigidbody3D);         if (rig) {             //默认不生效呢???             // rig.restitution = 0.9;             // rig.gravity = new Laya.Vector3(0, -10, 0); ...

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

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

...到舞台上 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

2797. Shader预编译(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 58%]

...照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function(){ let arr; for(let i = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["DIRECTIONLIGHT","BONE"], "pass...

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

2798. layaair2-cmd compile编译报内存溢出 [ 58%]

...IDE\resources\app\node_modules\rollup\dist\rollup.js:~13831] [pc=0E065923](this=5AD16EDD ) 2: collapseSourcemaps(aka collapseSourcemaps) [E:\LayaAirIDE\resources\app\node_modules\rollup\dist\rollup.js:13953] [pc=3DA77B43](this=0E9041A1 ,bundle=0CAD5F2D ,file=6DA918E9 2021-11-02 0 0 分享 微博 QZO...

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

2799. 加载 unity3D导入的旧版蒙皮动画时出现错误 [ 58%]

...ions;             skinAni.templet = Laya.AnimationTemplet.load(this.skinAniUrl[0]);             skinAni.player.play();         }         for (var i: number = 0, n: number = spirit3D._childs.length; i < n; i++)             this.addSkinComponent(s...

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

2800. [LayaAir3]关于drawToRenderTexture2D绘制后图像模糊问题补充 [ 58%]

... * @param clearColor Optional. If provided, the texture will be cleared to this color before drawing. Default is null. * @returns The drawn RenderTexture2D object. * @ZH 绘制当前对象到一个 Texture 对象上。 * @param canvasWidth 画布宽度。 * @param canvasHeight 画布高度。 * @par...

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