Search Unity

Question Instantiating Character causes errors, if already in Scene it works

Discussion in 'Animation Rigging' started by Lorrak, Jan 19, 2024.

  1. Lorrak

    Lorrak

    Joined:
    Sep 17, 2019
    Posts:
    50
    If character is already in scene it just works, if I try to Instantiate() the character in runtime it causes all sort of errors
    tried to disable RigBuilder, all rigs of the RigBuilder, keep animator disabled, then to use Animator.Rebind(), RigBuilder.Build() and it doesnt work after enabling.

    I attached screenshot, and it shows errors with even the RigBuilder's rigs? lol, but if character is already in scene there is no errors, seems like I dont reset something.. maybe something from Burst package? or Animations.AnimatorJobExtensions?
    Unity 2021.3.29f1, Animation Rigging 1.1.1

    the character's hierarchy is pretty basic too, tried putting Rigs under root, outside root, same problems Screenshot 2024-01-19 at 05.37.43.png Screenshot 2024-01-18 at 23.02.16.png
     
    Last edited: Jan 19, 2024
  2. Lorrak

    Lorrak

    Joined:
    Sep 17, 2019
    Posts:
    50
    well errors are gone
    Screenshot 2024-01-19 at 06.51.22.png

    okay adding weapon to character creates same errors, but adding primitive like 3d cube works just fine
    Unknown.jpeg
     
    Last edited: Jan 19, 2024