Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Access different vertices of a Mecanim

Discussion in 'Scripting' started by unity_user_12345, May 27, 2015.

  1. unity_user_12345

    unity_user_12345

    Joined:
    May 21, 2015
    Posts:
    14
    I have a human mesh connected with an fbx animation file using Humanoid Mecanim. What I want to do is how to know the vertex groups, meaning the group of different vertices assigned to different limbs. Then I want to color each group of vertices with a certain color. If anyone could please advise how this can be done in Unity using coding?
     
  2. IsGreen

    IsGreen

    Joined:
    Jan 17, 2014
    Posts:
    206
  3. unity_user_12345

    unity_user_12345

    Joined:
    May 21, 2015
    Posts:
    14
    Thanks for your reply.
    I can color the whole mesh. But I want to color each group of vertices with a certain color. For example, right hand will be red, left hand will be blue, head will be yellow,....etc.
     
  4. IsGreen

    IsGreen

    Joined:
    Jan 17, 2014
    Posts:
    206
    Using Standard shader with vertex colors.
     
  5. unity_user_12345

    unity_user_12345

    Joined:
    May 21, 2015
    Posts:
    14
    Could you explain how this be done? Like after importing the unity package what shall I do? (Sorry for being noob)
     
  6. IsGreen

    IsGreen

    Joined:
    Jan 17, 2014
    Posts:
    206
    Uffffff, sorry, but before asking questions you should practice more.

    Do some tutorial, watch video tutorials, etc ... and all your questions will be answered alone.

    ____________________________________________

    PD: More note, before you ask me to tutorials see, the answer is looking to google, youtube or unityanswer.