大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0089 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...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
...Ready()) { tex.once(Event.READY, this, this.drawImage, [tex, x, y, width, height]); } 导致 tex 找不到 getIsReady 方法报错 报错堆栈 TypeError: tex.getIsReady is not a function at Graphics.loadImage (...
来源: Laya_社区 发布时间: 20200417
...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 。 Parameters node: Node 指...
来源: Laya3.0_api 发布时间: 20231115
...1 个回复 cuixueying 赞同来自: skeleton.player.on(Event.COMPLETE,this,onCom); 2017-08-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 abc0201213 相关问题 分享:自定义事件派发与侦听(A页面派发 B页面...
来源: Laya_社区 发布时间: 20170824