Search Unity

How to access BoneWeight more than 5 bones index.

Discussion in 'Scripting' started by wooooolock, Nov 15, 2019.

  1. wooooolock

    wooooolock

    Joined:
    Aug 28, 2014
    Posts:
    3
    Unity2019.1 is support BoneWeight up to 32 bone.

    How can I access over 5 bone index from a script?

    Thank you.
     
  2. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190
    You will never need more than 32 bones influencing any single vertex in a skin.
    You probably confused over some terminology or functionality. Please try to explain your problem further
     
  3. wooooolock

    wooooolock

    Joined:
    Aug 28, 2014
    Posts:
    3
    Thank you for your reply.

    My model has 5 to 6 affected bones per vertex.

    I think it is necessary for complex and beautiful skinning.

    Thank you.
     
  4. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190
    stefan-velnita likes this.
  5. wooooolock

    wooooolock

    Joined:
    Aug 28, 2014
    Posts:
    3
    Thank you for teaching me.

    The problem has been solved!

    Set "Custom" in "Skin Weights" option in model import settings.
    Set "Unlimited" in "Skin Weights" option in Quality settings.
    Use BoneWeight1 class, GetAllBoneWeights, GetBonesPerVertex and SetBoneWeights.

    Thank you.
     
  6. LucaXtagVtag

    LucaXtagVtag

    Joined:
    Feb 14, 2022
    Posts:
    1
    I got a problem, they might be a bone heat, problem with my
    roblox character I've just imported, I'm unable to get it's textures and set it
    as a avatar. What do I do? o_O


    I'm technically, good at this Unity skills.