HEU_HoudiniAsset::RequestCook is not completely synchronous?

   1454   0   0
User Avatar
Member
1 posts
Joined: Nov. 2022
Offline
Hello,

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