Godot Version
4.3
Question
Hi there,
I made a simple script to align an object to a camera…
public override void _Process(double delta)
{
screenPoint.X = GetViewport().GetVisibleRect().Size.X * horizontal;
screenPoint.Y = GetViewport().GetVisibleRect().Size.Y * vertical;
testNode.Position = camera.ProjectPosition(screenPoint,depth);
}
It works great in the game view but when I preview the camera in the editor it seems different.
It kinda seems like the editor preview is off?
Any ideas?
Thanks,
Pete