大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0068 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... s.completeCreate()},n.disposeResource=function(){this._source&&(V.mainContext.deleteTexture(this._so TypeError: Cannot read property 'createTexture' of null ...
来源: Laya_社区 发布时间: 20180129
...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
...取图集内资源报错。 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
...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
...,编译后正常应该是可以落下的,但是并没有 const rig = this.basketball.getComponent(Laya.Rigidbody3D); if (rig) { //默认不生效呢??? // rig.restitution = 0.9; // rig.gravity = new Laya.Vector3(0, -10, 0); ...
来源: Laya_社区 发布时间: 20230220
...到舞台上 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
...照(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
...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
...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
... * @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