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.