Use Grid Layout to set GameObjects position
Hi guys, I'd like the player to be able to place elements on the screen but not "anywhere" : only in boxes (think "tactical map" and stuff like that.
Now for this to be adaptable to many screen size I thought that using Unity Grid Layout Group would be perfect, but it turns out it works only for UI elements.
How can I use this anyway to place prefabs ? Any workaround ?
Thanks !
UI elements can be prefabs. what prefabs are you thinking about?
Your answer
Follow this Question
Related Questions
Ui layout elements keep reverting after taken outside of grid element 0 Answers
Special Grid layout 0 Answers
Set Unity UI scroll view elements height properly in different resolutions 0 Answers
Prefab Powerup works, but instantiated clone does not 1 Answer
Get the Rect property of a UI object inside a Canvas that has the HorizontalLayoutGroup Component 0 Answers