why is instantiating a prefab slow?

Hi there

I got this character that I like to instantiate. It has the following scripts on it:

  • character controller
  • leg controller (from Unitys locomotion system)
  • leg animator (from Unitys locomotion system)
  • and 3 other smaller scripts

instantiating this prefab takes between 3-5 seconds.
How can I speed up things?

Is there a way that I can preload the prefab or something, to instantiate it at a glance?

Instantiating prefabs takes a fraction of a millisecond. Maybe you have something in the scripts which takes a while to run.