In my editor code I want to get the components on a prefab (NOT a game object). The prefab file is called foo.prefab and is in my resources directory. I need to be able to get the components that are currently on the prefab without instantiating it. Is this possible?
I believe AddComponent(*something*)
is what you are looking for