Quantcast
Viewing latest article 5
Browse Latest Browse All 152

Find a variable using a string

I want to be able to use a generated string to identify which GameObject the supplied prefab is assigned to in a method. The GameObjects are labelled Prefab1, Prefab2, Prefab3, etc. I have a couple lines that create a string that says Prefab(ID) dynamically, but I don't know how to convert that into a GameObject. Any thoughts?

Viewing latest article 5
Browse Latest Browse All 152

Trending Articles