Hi All!!
This may be a very simple fix or it’s even possible that Unity has gone through an update of some sort that has made this part of the tutorial I’m following no longer accurate…either way, though I know how to resolve the issue that is to occur by following further through the tutorial I can see where this will become a MAJOR problem down the road when I find myself stumped because I don’t realize there actually is an error in my code.
Anyway, my actual problem is this…
Tutorial Link:
I follow through this tutorial exactly as explained and within the first few steps under the Getting Tooled section (I know, I didn’t make it very far) I notice that where the tut. states,
“Once saved, you should notice an information icon down at the bottom of Unity saying that the script “Script1” could not be loaded because it’s filename doesn’t match.”
I do not receive this error, instead this area remains blank as though nothing has been done. Again I’m very new to all this (as the tutorial would imply) but I can see when the time comes to move out of the tutorial environment this type of thing will leave me blowing up the form community with all sorts of shenanigans…
Either way, I attempted to run the script as described in the tutorial both with changing and without changing the name;
public class NewBehaviourScript : MonoBehaviour {
The bold piece, as “name” may not be the correct terminology for this…
When replacing the text “Script1” with “Test1” the Hello World font no longer appears as the tutorial states it should (for obvious reasons) however there are still no error displayed and this section remains blank.
Lastly, if I create a duplicate Script1 and rename it to Script2 I do then receive an error:
Assets/Script2.cs(4.14):error CS0101:The namespace "global:’ already contains a definition for ‘Script1’
…I dont exactly understand what it’s saying, but I know it’s saying I can’t have copies of names yada yada…I’ll learn about that later, but my point is Errors at least able to be displayed. Just not the previously mentioned error.
SORRY for the novel but I wanted to make sure my issue was clear, if anyone has any information on this it would be greatly helpful! Thanks guys!
-Noob1 out