- Home /
Array of usable MonoBehaviour's selected from Project View
Hello!
I am looking for a way to create a array with MonoBehaviour's, that I could assign at Inspector View by selecting from Project View and then in script use AddComponent with a value from this array.
I have attempted public MonoBehaviour[] InputMethods
, but that only accepts behaviours found in the Scene.
I am looking for a way to add scripts as I can add prefabs from project when using GameObject
type.
Can I do this, and if so, how?
Your answer

Follow this Question
Related Questions
Instantiated Object Wont save a reference to the prefab, instead sets to itself 1 Answer
(Bolt) Can you collapse Variables in Inspector? 0 Answers
Problems with cloning, aka double trouble. 0 Answers
Displaying tooltips hint for variables in inspector 2 Answers
prefab is instantiating without a script 2 Answers