大约有 66 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0040 秒)
...PointToRay的第一个参数传的是在canvas的坐标,Laya.stage.mouseX获取的是在state的坐标 所有你要Laya.stage.clientScaleX *Laya.stage.mouseX或者用Laya.MouseManager.instance.mouseX
来源: Laya_社区 发布时间: 20180201
...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_示例 发布时间: 20260303
...内存,你想将资源文件内存释放也释放掉需要这样做: //获取加载的数据(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
...普通的渲染流程。但是,我们更建议调整Spine美术资源以获取最优的动画播放性能。 2.3 皮肤名称 skinName 当Spine里存在多套皮肤的话,通过切换不同的皮肤名称,可以在IDE里预览不同皮肤的效果,如图2-1所示。 (图2-1) 开发者也...
来源: Laya3.0_文档 发布时间: 20260203