I have the following Case. I want to spawn objects in a area in the Image RED. Around/Inside a wall GREY.
The objects should not be stacked one antoher. So they should idealy spread around the whole area.
Im searching here for a good solution and would ask for any advise to aproach this. in a coded way.
you cant exactly base it off the image color. If you are applying this sprite to an object surface, create a second base layer that’s scaled to that red rectangle instead and placed exactly on top of the base. Then disable its mesh render in the inspector tab. From there create a script that randomly picks a point in that base plate area!