Outputting geometry back to Unity with C#

   1331   0   1
User Avatar
Member
31 posts
Joined: Sept. 2019
Offline
I'm trying to create a script that creates new geometry from selected game objects in Unity. A navigation mesh to be specific.
So this is what I'm trying to do:
  • Point to a .hdanc on disc that I want to use
  • Pick game objects and use them as inputs for an Object Merge, that I specify by it's exposed parameter.
  • Output the result in Unity.

I've looked at and tried to decipher the functions from HEU_ScriptMeshInputUVLayoutExample and HEU_ExampleEvergreenQuery but I'm still a little stumped on how to output the geometry. I've also looked at seelan's example from this post https://www.sidefx.com/forum/topic/57584/ [www.sidefx.com] which seems to have more simple functionality and more in line with what I'm trying to do.

Is it HEU_GenerateGeoCache.GetPopulatedGeoCache that I'd want to use and then HEU_GeneratedOutput? If so, what's the most straightforward way of fetching geoID and nodeID? My geo and nodes will never change name.
Houdini Technical Artist @ Sharkmob
  • Quick Links