jeffreypersons / Penguin-Quest

An emperor penguin on a quest to bring back food to his son
1 stars 1 forks source link

Environment: Sprite shape rework to avoid overly large sprite renderer meshes from going out of bounds #185

Closed jeffreypersons closed 1 year ago

jeffreypersons commented 1 year ago

Sprite shape rework to avoid overly large sprite renderer meshes from going out of bounds

Summary

Previously, the sprite shape controller would complain if renderer mesh was too large (at 200 units accross, 1 unit high, which it should support no issue).

The issue had to do with the sprite shape assets being treated as individual sprites instead of textures. This was fixed by extracting out the default sprite shape shapes, tweaking the settings to be used as a texture. Also did a couple other prefab cleanups/tweaks.

Now things run in the scene with no errors/warnings! :)

Detailed Changelog