Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to connect or bind two children in a prefab?

Discussion in 'Prefabs' started by HageNezz, Sep 2, 2020.

  1. HageNezz

    HageNezz

    Joined:
    Aug 3, 2019
    Posts:
    5
    Hi, I am working on an FPS game. When I played the game for testing, I realized that my character's head and body were not connected; the head was just statically not moving with the body. They are both children of a character prefab. If I want to connect them together, how am I supposed to do it? Should I use Blender, or can I do this in Unity? Thank you.
     
  2. gosselinsimon713

    gosselinsimon713

    Joined:
    Sep 3, 2020
    Posts:
    2
    Hey, I'd check just to make sure that the body isn't marked as static in game. This will make it so it's unable to move. If it isn't static, then it sounds like the code to move your character is only affecting your head. I'd make sure wherever you're choosing to move the player is affecting the parent of both, not just the head.