Get Component Script not working on some scripts
I have a script that requires other scripts to change it's variables. One of the scripts (Portal1) works perfectly without flaws. But when ever I attempt to do the same this with other script, it stays the script I'm trying to find cannot be found. I even attempted to use the exact code from Portal1 to see if it was a programming error. But it still refused to work.
Portal 1 Script:
Cutscene Trigger Script:
Problem Reporter
I believe it has nothing to do with the trigger colliders. I'm completely stuck here.
Any help would be highly appreciated! Thanks! ,
Answer by soggysocksdev · Apr 05, 2018 at 01:39 PM
Found a fix. Must have just been a bug. I had to close all scripts on Visual studio then close both visual studio and Unity and simply reopen them.
nope you just have to restart your IDE, and it should recognize the new script after reopening