How to prevent 3D widget that are drawn on Screen space from overlapping? (Speech Bubble)
In a top-down perspective, a character can have one speech bubble spawn near them. If there are multiple characters that are close to each other their speech bubbles that are drawn on screen space might overlap each other. So, to prevent that from happening, is there any viable method or approaches. For instance, I had searched about how to check if Widgets are overlapping but to no avail. Other than that, I think the biggest problem is to calculate a new position for the widgets if they are overlapped.
There's no built-in method for this, you will need to do it manually. Get the size and position of each widget and mathematically figure out where others can be placed.
You did not include much details here but if it needs dynamic updates (widgets size changes on the fly or the speech bubbles move about a lot) you'll need to do it during tick.
Could you quickly demonstrate a potential layout on the screen - a crude paint drawing will do! I'm wondering if there's an automated method of doing it what you need.
answered Apr 18 '19 at 08:37 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here