"use strict";exports.__esModule=!0,exports.default=void 0;var _extension=require("../../core/extension"),_modelApi=require("../../unity/model-api"),_default=exports.default=(0,_extension.definePlugin)("tool",{setup(a,b){return{toScreenPoint:async a=>b.unity.invoke(_modelApi.REQUEST_TYPE.ConvertToScreenPosition,{worldPosition:{X:a.x,Y:a.y,Z:a.z}}).then(({screenPosition:a})=>({x:a.X,y:a.Y})),dispose:()=>{}}},destroyed(){this.dispose()}});