Hello,
I have a DA that needs to have the positions of its internal geo components exposed to Unity.
In the image attached, the lattice is one object and the sphere is another. I need to let unity know the position of this sphere relative to the grid. Is this possible? I tried creating a vector float parameter and then pasting the relative reference of the sphere into that parameter, but it just comes out as zeros when I import the DA into unity.
Or is there a way to expose the sphere as a child of the DA once it is in unity so that I could place unity objects as children under the sphere such that they would be at the same position as the sphere if set to {0,0,0}?
I hope that made sense!
Thank you,
Caesar
Exposing geometry parameters upstream
5142 6 0-
- caesar
- Member
- 143 posts
- Joined: 3月 2014
- オフライン
-
- bonsak
- Member
- 459 posts
- Joined: 10月 2011
- オフライン
-
- caesar
- Member
- 143 posts
- Joined: 3月 2014
- オフライン
-
- caesar
- Member
- 143 posts
- Joined: 3月 2014
- オフライン
-
- caesar
- Member
- 143 posts
- Joined: 3月 2014
- オフライン
-
- caesar
- Member
- 143 posts
- Joined: 3月 2014
- オフライン
-
- damian
- Member
- 402 posts
- Joined: 3月 2013
- オフライン
This should work. I attached an example of an asset that exposes underlying OBJ transforms (and they do not get reset to 0,0,0).
An added bonus is that this asset exposes transform handles that show up in Unity and allow you to transform those subobjects and have the transforms persist across cooks. Otherwise, if you move subobjects manually in Unity the transforms will be reset when the asset cooks.
An added bonus is that this asset exposes transform handles that show up in Unity and allow you to transform those subobjects and have the transforms persist across cooks. Otherwise, if you move subobjects manually in Unity the transforms will be reset when the asset cooks.
-
- Quick Links

