Currently we can assign scripts in Houdini using an attribute to the root level of the hda in Unity. I created a test scene with two objects. One is a sphere and the other is a box.
I then attach a script inside the sphere geometry with these settings.
The script is being assigned to the root level in Unity and not on the object itself.
What we are trying to do, is get the script on the object itself. How can we assign scripts to the object itself and not the root level? Similar to the image below.
Thanks,
Glen
Assign scripts in Houdini that are not root level
1941 2 2- aig_vr
- Member
- 8 posts
- Joined: Jan. 2018
- Offline
- seelan
- Member
- 571 posts
- Joined: May 2017
- Offline
The scripts should have been on the output gameobject for each part, but the current implementation attaches them to the root. I made the change to attach to the output gameobjects instead, and this should be available in tomorrow's daily build so it will just work for you. I also fixed the issue such that you don't need to add the “:MonoBehaviour” part; that was a bug.
- aig_vr
- Member
- 8 posts
- Joined: Jan. 2018
- Offline
-
- Quick Links