How can I use "Type.GetType" when I have to input the name of a script class?
From this link, I found that I can use Type.GetType for something like the Toggle type like so (in C#):
Type test = Type.GetType("UnityEngine.UI.Toggle, UnityEngine.UI")
How can I do this where the type I want is of a custom script? What do I put in the input string? Something like "UnityEngine.CustomScript, UnityEngine" doesn't work. I don't know what assembly qualified names are or how they work, so that was my best guess.
I experimented with this here but gave up. I don't think it is possible, in fact I think it is sort of against how C# and OOP languages are designed. Any possible solutions I did stumble upon to this were invariably so excessively complicated that it was better to just not bother and use a different method of calling the script.
Oh ok, thanks for linking your version of this question. Ya, the stackoverflow link someone commented on yours looks really complicated, haha. No worries, I can work around it.