Skip to content

Sketch Get Transform Position

Project a Transform's world position into sketch coordinates.

Parameters

Parameter Description
Sketch Component Sketch canvas to project onto.
Transform World-space Transform to convert.
Camera Optional camera used for UI-style projection. Leave empty to use Camera.main.
X Optional output for the projected X position.
Y Optional output for the projected Y position.
Position Optional output for the projected position as a Vector2.
Success Optional output that is true if the conversion succeeded.

Notes

  • This is useful for plotting world objects onto a sketch-based radar, overlay, or debug view.
  • If the point cannot be projected, Success is false.