Scale a UI Image according to a Cube

Without touching the orthographic size.

Any help with this?

Thanks

you can get the bounds of the cube. Convert it to screen Rect. use RectTransformUtility.ScreenPointToLocalPointInRectangle() to calculate the position of rect corners Use corners to set the UI Image size