3 votes Vote

Scatter's "Add margins" doesn't do anything

Unity 2019.4.9f1/2020.1.6f1, MM 2.0.8
The new "Add margins" value in Scatter node doesn't do anything - putting in any value doesn't change the positions of the points. Putting in a huge value kinda breaks the positions out of the map.

Refeas, 25.09.2020, 19:39
Idea status: completed

Comments

Wraith, 25.09.2020, 21:18
Try enabling objects preview on terrain and change the value from 20 to 30. This is the best way to visualize the effect.

Hover you'll see the other issue I'm already aware of - it is just moving two sides, not 4.
Refeas, 25.09.2020, 21:35
Oh I see it now - you have to put NEGATIVE values in there to move the scatter objects inward to prevent the seams. And yes, it's only moving in 2 directions.
Wraith, 25.09.2020, 21:38
Yep
Refeas, 26.09.2020, 14:53
I slept on it and I think you should invert the behaviour. Margins in webdev and other areas are usually interpreted as: positive margin "insets" the margined object from its parent inwards and negative margin outsets it.
MM having it work the opposite way could confuse a lot of people (as it did me).
Wraith, 26.09.2020, 18:55
Any ideas of how to call them then?
Refeas, 26.09.2020, 20:44
Maybe just call them Safe Borders again and make them positive like they used to be. Or Insets? Padding? Not really sure. Either way, making the value positive for inwards logic would make more sense. I don't know of situations where I would want the scatter result to leak the original tile.
Refeas, 05.12.2020, 12:46
Will this also make it to 2.1.0?

Leave a comment