Huwey
October 26, 2019, 7:26pm
1
I just recently got an iMac and put unity on here.I have been trying to start “messing around” attempting different scripts and game ideas.
When I try to add a script to a gameobject I get the error message in the image attached.
I have also attached the script that I was attempting to apply.
It is a script that I downloaded and have seen it working so not sure why I’m not able to use it.
I am using Unity 2019.2.10f1
5109779–504269–Parallaxing.cs (2 KB)
Olmi
October 26, 2019, 8:08pm
2
Are you sure that the file names are exactly correct on your hard drive? Mac OS file system is case sensitive so it might have something to do with that, as usually you only get that error when you have named your class different than the file, when you’ve edited your code.
Your Parallaxing.cs seems to have same name class inside. And the script file seems to be ok on a Windows system. Hm.
Please show a screenshot or two. The file looks correct. How are you adding the script file to the object?
Huwey
October 27, 2019, 3:51pm
4
What is it that you are wanting a screenshot of? I applied a screenshot of the error message.
I have tried adding the script by dragging the file to game object and that’s when the error message comes up.
The file is from a Brackeys tutorial.
I have added a video of trying to apply it to a empty game object maybe that will take care of screenshots that would be needed.
Video:
https://www.youtube.com/watch?v=qNuQVvV-xD4
A video is even better! Thanks. What if you create a new project, and Add New Script from the Inspector window properties for the gameobject?
Huwey
October 27, 2019, 6:04pm
6
So that appeared to have worked. At least at this point and time it did Thanks!