ScriptReference/Renderer-bounds #580
Replies: 1 comment
-
|
When using this method on a Tilemap Renderer be aware that the bounds of a tilemap grow automatically, but never shrink. If you need accurate bounds for your project you need to manually call CompressBounds() on the tilemap, and this is an expensive operation. This will work if you only have a handle to the Tilemap Renderer: You could also manually select the "Compress Bounds" context menu action of the Tilemap component. Further reading: https://forum.unity.com/threads/tilemap-bounds-bug.499738/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/Renderer-bounds
https://docs.unity3d.com/ScriptReference/Renderer-bounds.html
Beta Was this translation helpful? Give feedback.
All reactions