大约有 3,253 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0100 秒)
Laya_社区(2450) Laya3.0_api(242) Laya2.0_文档(138) Laya2.0_api(136) laya_api(135) Laya3.0_文档(82) Laya_示例(52) Laya2.0_示例(18)
...gt; { console.log(`downloading:${Math.floor((now / total) * 100)}`) return false;0 }, (curlret, httpret) => { if (curlret != 0 || httpret < 200 || httpret >= 300) { resolve(null); } else { resolve(localfile); } }, 10, 100000000); } ); } let zipfile = await downloadBigZip('http://10.10.20.26...
来源: Laya3.0_文档 发布时间: 20251010
...动同步,无需手动 node.getComponent("MeshRenderer").props.enabled = false; 2、调用节点/组件的一个方法,并返回值。例如: //下面是UI进程代码 //获取选中的节点 let node = Editor.scene.getSelection()[0]; //调用MyScript组件里的test方法,传入参数abc le...
来源: Laya3.0_文档 发布时间: 20251010
...ra Defined in laya/components/Component.ts:36 _isScene _isScene: boolean = false Defined in laya/d3/component/Volume/reflectionProbe/ReflectionProbe.ts:58 是否是场景探针 Optional _singleton _singleton: boolean = true Inherited from Component._singleton Defined in laya/components/Component.ts:...
来源: Laya3.0_api 发布时间: 20231115
...tr3 = Trim(arr2[i+1], "g"); arr2[i+1] = String(arr2[i+1]); let canInsert = false; let isFun = ( (arr2[i].indexOf("private ") !=-1 || arr2[i].indexOf("public ") !=-1) && arr2[i].indexOf("(") !=-1) && arr2[i].indexOf("=") ==-1; var str = ''; if(isFun && formatStr2 == "}"){ canI...
来源: Laya_社区 发布时间: 20190613
...= new SiteEntity( 10, 10, -1, 400 ); public static _ani_cached:boolean = false; // toset: /** 飞行物的中心点, 参照物为魔鬼, 用于确定瞄准点和整体的中心点 */ private _pivot_demon:Point = <Point>{ x: 50, y: 50 }; /** 特指血条+魔鬼的大小, 用于计算...
来源: Laya_社区 发布时间: 20180515
...spatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 EventDispatcher on...
来源: laya_api 发布时间: 20170929
...。 非可见区域的对象尽量从显示列表移除或者设置visible=false。 对于容器内有大量静态内容或者不经常变化的内容(比如按钮),可以对整个容器设置cacheAs属性,能大量减少Sprite的数量,显著提高性能。如果有动态内容,最好...
来源: Laya3.0_文档 发布时间: 20251010
...4-22 18:21:22.238033+0800 layabox[3608:626785] JSBridge showFloatPanel: [false] 2020-04-22 18:21:22.238274+0800 layabox[3608:626785] reflection error: can not find method signature 2020-04-22 18:21:22.238390+0800 layabox[3608:626785] JSRuntime::callMethod {} 2020-04-22 18:21:22.238924+0800 layabox...
来源: Laya_社区 发布时间: 20200422
...] Defined in laya/utils/Stat.ts:67 Static renderSlow renderSlow: boolean = false Defined in laya/utils/Stat.ts:115 表示当前使用的是否为慢渲染模式。 Static spriteRenderUseCacheCount spriteRenderUseCacheCount: number = 0 Defined in laya/utils/Stat.ts:106 精灵渲染使用缓存Sprite ...
来源: Laya3.0_api 发布时间: 20231115
...mer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图4-4所示: (动图4-4) 4.1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3D } ) //节点类型 public p3d: Laya.Sprite3D; onAwake(): void { this.p3d.transform.localPosition = new...
来源: Laya3.0_文档 发布时间: 20251010