Hello, quick question!
I’m trying to access scripts through GetComponent without naming the scripts explicitly.
I store the script name in
and then try to access that script using
…however this throws the error
`MyClass.scriptName' is a `field' but a `type' was expected
Is there a way to convert my string to Unity’s Type type so that GetComponent may take it?