Question about components in a list

Hey guys, I am trying to create a tool for my level designer that would allow him to dynamically spawn managers for his scenes.

    [SerializeField] List<Object> lManagersThatSpawnAtStart = new List<Object>();
        foreach(Object component in lManagersThatSpawnAtStart)
            GameObject newComponent = new GameObject();

            //How the hell can I attach "component" to it?!


Basically I want


It’s lost on me how I can attach it from the list to the empty game object, Can you please help me :slight_smile:

Use the Activator class:


Remember the use the full qualified name of your ComponentType.

Here’s the Activator class reference