this doesnt work

This commit is contained in:
XtraCube committed 2025-03-29 21:29:46 -04:00
1 parent 6fb0afe14e
commit 2418e17af6
1 file changed
+3
+3
View File
@@ -23,6 +23,9 @@ public class InputBox : MonoBehaviour
var canvas = canvasObj.AddComponent<Canvas>();
canvas.renderMode = RenderMode.ScreenSpaceOverlay;
canvas.overrideSorting = true;
canvas.sortingOrder = 1000; // Ensure the canvas is on top of other UI elements
canvasObj.AddComponent<CanvasScaler>().uiScaleMode = CanvasScaler.ScaleMode.ScaleWithScreenSize;
canvasObj.AddComponent<GraphicRaycaster>();