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

Feature Request Unity import object from blender not adding sub-collections

Discussion in 'Editor & General Support' started by Sooly123, May 26, 2023.

  1. Sooly123

    Sooly123

    Joined:
    Aug 24, 2022
    Posts:
    88
    In blender it looks like this:
    upload_2023-5-26_20-35-23.png
    But... in unity it looks like this:
    upload_2023-5-26_20-40-34.png
    How hard is it to add an empty gameobject for each collection?

    If this is already a feature please tell me how to do it.

    I could just sort them into the categories but it would be nicer automatic.
     
    Last edited: May 26, 2023
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,563
    I have no idea if that works either. When I work in Blender, I follow these organizational rules:

    - use Empty Blender Objects as folders: they come out as an extra GameObject

    - ALWAYS parent everything to a single Empty

    - put as few objects in a given .blend file as possible, combining them in Unity into a prefab

    - set good names for your Blender3D objects and NEVER RENAME them after Unity sees them

    - don't even think about Materials or Textures in Blender, just do it in Unity

    Probably not too hard. I've done customization to the Unity Blender -> FBX python script before. Here's how:

    Unity imports Blender3D objects as FBX via a little Python script:

    https://forum.unity.com/threads/from-blender-to-unity-problem.1073381/#post-6925811

    The Python script that Unity uses (substitute your Unity version number or search) to import:

    ./Hub/Editor/2020.2.1f1/Unity.app/Contents/Tools/Unity-BlenderToFBX.py


    More on fixing it:

    https://forum.unity.com/threads/all-my-mesh-folder-content-is-gone.1102144/#post-7094962
     
    Last edited: May 26, 2023
  3. Sooly123

    Sooly123

    Joined:
    Aug 24, 2022
    Posts:
    88
    thanks, giving it a go now
     
  4. Sooly123

    Sooly123

    Joined:
    Aug 24, 2022
    Posts:
    88
    thanks very much! put everything in a empty worked!
     
    Kurt-Dekker likes this.