Quantcast
Channel: Latest Questions by fishZombie
Viewing all articles
Browse latest Browse all 14

How do I not use a script?

$
0
0
Whenever I add a script to Unity, it automatically tries to use it, even if it is not attached to an object. Let's say I want to test something, and I do not want to destroy a movement script I have on my Hero. I Duplicate that script, and give it a name like ... moveOld, so I have a backup. Then I start working on the script that is attached to the Hero. BUT... It now gives me errors saying: **The namespace `global::' already contains a definition for `PlayerMovement'** So it's reading a script that is not attached to anything. It's just in a folder. I tried moving it to different folders, but the only way I get rid of the error is to DELETE it. So... How do I test a new script without killing the old one? I do not want to have to create new version of my game, it takes up too much memory. Please help.

Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>