- Home /
Create Transform to part of mesh?
Hi all,
I'm working on a project in unity and there's a script that has a reference to a transform to a character's hand. This is used to put an item in the character's hand and have it follow it as the hand moves. When I double click on the transform I don't get a reference to any prefab though, but it does have the data of the mesh at that location. How do I create a transform like this?
Thanks!
Edit: Here's a screenshot of what it looks like( Near the bottom in the Item Slot).
What do you mean 'how do I create a transform like this?'? It looks like you did. It should be a reference to a sub-object in your scene's hierarchy I'm guessing (unless you really wanted it to point into a prefab in the Project assets list?)
Sorry, I should have clarified, I didn't create what you see there, I found the code that way and the programmer that did it isn't around anymore.
Well, that kind of thing is always a public Transform variable in code, is it on a prefab, or a scene object? If anything, I think that is most likely to be a reference to an element deeper in the prefab hierarchy than you can see just in the project view- try dragging one into the scene, and see what you can see there.
@syclamoth : Yep, that's really annoying. Hopefully when we get nested prefabs you can view the whole prefab-hierarchy in the project-view.
Your answer
Follow this Question
Related Questions
Unity adding random transform to mesh components 1 Answer
Skinned Mesh (FBX) With Rig Keeps Offsetting On Play 1 Answer
Find number of Meshes from FBX in Editor Script 0 Answers
Mesh filters missing their meshes when project cloned from bitbucket 2 Answers
Unity - How to make child object's local position zero as default for Fbx file? 2 Answers