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. Dismiss Notice

Question What is nodeNameCollisionStrategy?

Discussion in 'Asset Importing & Exporting' started by YuriyVotintsev, Jun 29, 2023.

  1. YuriyVotintsev

    YuriyVotintsev

    Joined:
    Jun 11, 2013
    Posts:
    91
    In .fbx.meta file i found nodeNameCollisionStrategy parameter. When i set it to 0 unity importer changes hierarchy names if there are to objects with same in hierarchy. When is et it to 1 - no changes are made.
    For example i have fbx with following hierarchy:

    Code (CSharp):
    1.  
    2. Character
    3. --LeftHand
    4. ----Wrist
    5. ------Finger1
    6. ------Finger2
    7. ------Finger3
    8. --RightHand
    9. ----Wrist
    10. ------Finger1
    11. ------Finger2
    12. ------Finger3
    When nodeNameCollisionStrategy: 1 - there are no changes
    But when nodeNameCollisionStrategy: 0 - it becomes this after import:

    Code (CSharp):
    1.  
    2. Character
    3. --LeftHand
    4. ----Wrist
    5. ------Finger1
    6. ------Finger2
    7. ------Finger3
    8. --RightHand
    9. ----Wrist 1
    10. ------Finger1 1
    11. ------Finger2 1
    12. ------Finger3 1
    I need behaviour without renaming, but i think renaming feature was not just done. What are downsides of not renaming and why renaming is there?
     
  2. YuriyVotintsev

    YuriyVotintsev

    Joined:
    Jun 11, 2013
    Posts:
    91
    And i don't find this setting in inspector. So i am changing it in meta file.