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

Avatar references is lost when its FBX is stored inside asset bundle

Discussion in 'Animation' started by Ox_, Dec 17, 2015.

  1. Ox_

    Ox_

    Joined:
    Jun 9, 2013
    Posts:
    93
    I don't know if it's a bug or some borderline weird behavior.

    There's an FBX with an Animator, meshes, animations, avatar - everything usual. If I instantiate it from code of drag it to a scene manually - things work as expected.

    But if I download it as an asset bundle and use AssetBundle.CreateFromMemoryImmediate, all the Avatar component references are lost. The same FBX is instantiated with a missing Avatar.

    I also tried to add prefabs with Animator to this bundle. The reference to an animation controller stays, but the reference to an Avatar (inside FBX) is lost when it's instantiated from this bundle.

    Any ideas for a workaround? Is it possible to create a separate Avatar file without a wrapping FBX?
     
  2. Ox_

    Ox_

    Joined:
    Jun 9, 2013
    Posts:
    93
    Ok, solved by doing full re-setup.