#How do you combine meshes
1 messages · Page 1 of 1 (latest)
Wait... there's a CombineMeshes function in Unity? How effective is that?
but that looks like it will only get the mesh for that 1 gameObject, you need to loop through the entire hierarchy.
Try using GetComponentsInChildren node, and provide it that instantiated GameObject's transform... until someone comes along with a better way to do it at least
Apparently it's very very effective, this guy triples his FPS just by combining meshes https://www.youtube.com/watch?v=5WbmDZohtJY
And thank you very much for your answer, I'll try that and let you know how it goes
In this video I will show you a simple Unity3D (C#) code which combines meshes to greatly improve your fps.
Wishlist my new game, HexLands now! ➤ https://store.steampowered.com/app/2244650/HexLands/?utm_source=yt&utm_content=mesh-comb
Join our Discord community ➤ https://discord.gg/6hKwSaCkwa
This way your framerate / fps will greatly improv...
I couldn't get it to work using visual scripting, so I decided to use a script instead.
It works just fine, and it drastically improves performance, the more objects on screen the more effective it is.
I think for true recursive component fetching in a hierachy the best approach is to build the steps yourself.
Even in C# GetComponentsInChildren has some unfortunate quirks, and it is a tad worse in UVS.
You can definitely do this in UVS but a bit tricky if you're just getting started
I am just getting started, and I really wanted to make it work in visual script, since then I'd really understand how it works, but I spent 5 hours of trying and googling and I got nothing.
I might return to it later, see if I can do it myself.
as a side node, I've found Claude quite strong at understanding visual scripting compared to some other models.
It has produced some custom nodes or units, and supplemental scripts for some missing UVS functions (such as interacting with post processing, or modifying the environment colors in URP)