public Vector2 RootToLocal(Vector2 pt, GRoot r) { if (r == null || r == GRoot.inst) { //fast pt.x *= GRoot.contentScaleFactor; pt.y *= GRoot.contentScaleFactor; } else pt = r.LocalToGlobal(pt); return GlobalToLocal(pt); }