Is it possible? If so, can someone please provide an example?
(I know of FindGameObjectsWithTag)
Is it possible? If so, can someone please provide an example?
(I know of FindGameObjectsWithTag)
Well your question should actually be “how do you use a string as a type”, lol.
FindObjectsOfType(Type.GetType("StringNameOfTypeToBeConverted"));
Note that as the docs say, FindObjectsOfType is very slow.
The original answer to this I found here: http://answers.unity3d.com/questions/45022/casting-string-as-typefor-passing-to-method-callin.html