HEU_HoudiniAsset::RequestCook is not completely synchronous?

   600   0   0
User Avatar
1 posts
Joined: 11月 2022

I have an HDA that takes two inputs(a unity mesh and a houdini curve) and generetes a new mesh. I'd like to set the input nodes and do something with the generated mesh in a script. I had something like this:

//Set input nodes
MyAsset.RequestCook(true, false, true, true);
MeshFilter meshFilter = MyAssetGO.GetComponentInChild<MeshFilter>();
//do something with the mesh

The above code works in 18.5.545 but not in 19.5.403. GetComponentInChild would return null after RequestCook but bAsync is set to false.
  • Quick Links