- Home /
Question by
Grimmy · Oct 20, 2010 at 08:16 AM ·
getcomponentcomponentclass
How do I find an external component from inside a class?
I have a clas in a plugins folder which isnt mine but I want to modify to look at one of my script components in my scripts folder. Now although I'm using athe standard GetComponent() eg..
var questioningButtonScript: QuestioningButtonScript;
var questioningButtonObject=GameObject.Find("QuestioningButton");
questioningButtonScript=questioningButtonObject.GetComponent(QuestioningButtonScript);
..Unity errors telling me that QuestioningButtonScript does not denote a valid type. WHy is this?
Comment