Object position compared to UI

So i have made a UI, with some text objects and a background. Look at the pictures.

But when i place a object that is not a child to the canvas, the gameobject does not show up on the cavas or where i placed it in the correct way.

The first picture is the scene, were i have a blue triangle and on the right is the same scene but in game view and you cant even see the whole thing. What have i done wrong or what do i need to do to fix it?

9762568--1398319--Skärmbild 2024-04-10 185436.png


Here are the official docs on how to make your UI handle various resolutions and aspect ratios cleanly:

Here are some notes on UI Anchoring, Scaling, CanvasScaler, etc:

Usually you need to choose a suitable ScaleMode and MatchMode in the Canvas Scaler and stick with it 100%. Generally if you change those settings you will often need to redo your UI entirely.

I also use this CanvasScalerOrientationDriver utility to make sharing UI for Landscape / Portrait easier. Read what it does carefully.