Learn how to create a standalone Houdini Digital Asset containing multiple Houdini object (OBJ) nodes inside.
In Houdini
- Install and instantiate the Instancing_ObjectInstancingByAttribute_Finished.hda example in Houdini.
- Go inside the Instancing_ObjectInstancingByAttribute1 > instance1 node in the network editor.
- You should have attribcreate2 node selected.
- In the Scene View pane, go to the Geometry Spreadsheet tab.
- At the top of the Geometry Spreadsheet window, beside the Group field, click the Points button.
- You'll see the instance string attribute with paths to objects being instanced and you should see that two different kinds of starfish are being instanced.
In Unity
- Import the provided HoudiniCacti.unitypackage.
- Go to Houdini Engine > Load Houdini Asset... and find your Instancing_ObjectInstancingByAttribute_Finished.hda asset.
- You should see your starfish army in the Scene view.
- In the Inspector pane, find the Houdini Instancer Manager (Script) component.
- You'll see an entry for instance1. This is the same instance1 Instance OBJ node in the asset.
- Under instance1, you'll see two GameObject fields: one for the blue_starfish, and another for the yellow_starfish.
- Drag over the HoudiniCactus1 prefab into the blue_starfish GameObject field to replace the blue starfish with a cactus.
- Drag over the HoudiniCactus2 prefab into the yellow_starfish field.
- You can also add more variations on the Unity side to any Houdini-instanced object. Just click the + (plus) button beside the yellow_starfish field to add a variation.
- Drag over the HoudiniCactus3 prefab into the second variation of the yellow_starfish - the GameObject field that says None (GameObject).
- Admire the field of cacti.
COMMENTS
Please log in to leave a comment.