- Home /
Question by
cabelhigh12 · May 26, 2020 at 04:19 PM ·
prefabprefabsdictionary
Whats the best way to populate a Dictionary with multiple Prefabs?
Hi all!
New to Unity but pretty experienced with coding. I want to make a script that has a Dictionary with a string Key and a Transform Value, and fill the Transforms with Prefabs that I've made on the Start() function so that during Update() it can pick specific ones and Instantiate them. What's the best way to do this? I can't drag the prefabs into the inspector window, because there is no Inspector for the Dictionary.
Thanks!
Comment
Your answer
Follow this Question
Related Questions
Prefabs shown as blue boxes and not previews 0 Answers
Link GUIText to a prefab? 2 Answers
I'm stuck on my menu prefab 1 Answer
Create with code 2.2 pizza not shooting 1 Answer
What's the best way to use prefabs as Dictionary values? 2 Answers