sr4dev / Unity-SpriteAssist

Unity Sprite mesh extension
https://github.com/sr4dev/Unity-SpriteAssist
236 stars 29 forks source link

Ability to create meshes at runtime? #72

Open cihadturhan opened 2 weeks ago

cihadturhan commented 2 weeks ago

Hello,

I saw there are many editor functions like PrefabUtil.CreateMeshPrefab used to create meshes.

I wonder if it's possible to generate and use meshes at runtime.

Thanks

sr4dev commented 2 weeks ago

Unfortunately, SpriteAssist was never intended to be used during runtime, but it wouldn't be hard to add the functionality - it would just be a matter of extracting the Sprite's Mesh and rendering it with a MeshRenderer. I'd love to make something like this someday, but I don't have a lot of time to work on it.

cihadturhan commented 2 weeks ago

Thank you! I'll try to make it compatible at runtime in my free time. I might ask a few questions if you don't mind :)