سؤال

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!

Here's a screenshot of what I'm trying to accomplish: enter image description here

هل كانت مفيدة؟

المحلول

The hand is a "bone" in the models skeleton. A model's skeleton in Unity is represented by a tree of GameObjects with Transform components.

To create a Transform like that you would have to import a model with a skeleton. To add it to the field in the inspector you would have to locate it in the Project window and drag it into the inspector field.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top