Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Mesh combine for dynamic objects?

Discussion in 'Community Learning & Teaching' started by gurush, Apr 12, 2024.

  1. gurush

    gurush

    Joined:
    Aug 10, 2021
    Posts:
    13
    Hi guys, I am currently making a defense game.

    I am trying to apply mesh combine for heros or enemes that are being spawned during the game play.
    I understand how I could combine the meshes for static objects such as map, but I am curious of how to combine meshes for dynamic objects. Could someone please tell me the way to do it?

    Thanks in advance!
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,922
    In exactly the same way.

    But if you intent to combine several individual enemies, this won‘t work. They would be forever locked at their initial relative positions and rotations to each other. It will work if your intention is to mesh combine a particular type of enemy that is modular, ie it may have different legs, torso, head or attachments like weapons and armor.