大约有 64 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0025 秒)
...ager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCast(ray, _outHitInfo, 30, 0); } (function loadUI() { var label = new Laya.Label(); label.text = "点击放置"; label.pos(Laya.Browser.clientWidth / 2.5, 100); label.fontS...
来源: Laya_示例 发布时间: 20251130
...内存,你想将资源文件内存释放也释放掉需要这样做: //获取加载的数据(Json数组转化成数组) var arr:any = Laya.loader.getRes(assetsUrl); for(var i:number = arr.length - 1;i>-1;i--){ //根据资源路径获取资源(Resource为材质、贴图、网格等的基...
来源: Laya_社区 发布时间: 20180814
...seY; this.camera.viewportPointToRay(this.point, this.ray); //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCastAll(this.ray, this._outHitAllInfo, 30, 0); } private loadUI(): void { this.label = new Laya.Label(); this.label.text = "点击选取的几何体"; this.label.pos(La...
来源: Laya_社区 发布时间: 20180820
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...
来源: Laya3.0_api 发布时间: 20231115