Saying Offset is already defined when it shouldn't.

5231357--521801--Screenshot.png 5231357--521801--Screenshot.png I messed up yesterday by accidentally deleting 2 of my asset folders, forcing me to spend hours remaking the track. I made a standard Scrolling Texture Script just like before, but strangely tells me ‘Offset’ is already defined despite the previous script being deleted. This warning stops me from applying this Script to my textures. The picture below is what Unity says when I attempt to apply the script to a Texture.

First of all, please start using source control, and get in the habit of committing regularly. There’s tons of tutorials on using git, which I recommend and which I use with Unity3D every day. That way your work is backed up anytime you want. It’s like a save game system for developers.

Second, the other Offset class it is finding might not exist, but one way to really find out is to rename the Offset class to Offset2, and then try and use Offset. If you can use Offset, then right click and go to the definition and you’ll find it.

As an aside, Offset is a fairly generic name for a game-wide class. You may wish to make a slightly-more-descriptive name.

Check my question again, I just updated it. Changing the name still shows the error message seen above.

Please show your code

I’m looking right at your code in the graphics window posted above and there are TWO (2) variables called Offset2.

That’s the error. You have TWO (2) things called the same and that is verboten.

5231969--521852--Screen Shot 2019-11-30 at 10.53.11 PM.png