Search - User list
Full Version: How automatically load prefabs in asset?
Root » Houdini Engine for Unity » How automatically load prefabs in asset?
v_chernobay
Hi,

I use point instancing and I have instance attributes on points. In Unity I manualy load all prefabs to asset inputs, it take a lot time to do it every time.

Do we have any solution to automatically load prefabs in asset? I tried unity_instance attribute, where I point relative path to my prefab, but it not working. Maybe this attribute is not intended for this.

Thanks!
seelan
The unity_instance attribute would be the way to do it. Make sure the path is starting with Assets/ (e.g. Assets/Prefabs/Car.prefab)

If that doesn't work, post your asset on here and I can take a look. Also make sure the plugin is update to date.
v_chernobay
I put attribute unity_instance to points with path, starting from Assets/, but not working. I tested in build 496. I attach test hda and unitypackage.
seelan
Get rid of the “instance” attribute but keep the “unity_instance” attribute, then it should work. What is happening is that the point has both the instance and unity_instance attributes, so the instance attribute is the only one being applied (as it gets priority).
v_chernobay
Thanks, it works.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB