Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.