- Home /
Copy script data to another class when refactoring?
I moved some processing from the camera to another object. Is there any way I can move the data in the scripts to that other object? I already manually copied some of the data, but since I have a tendency to refactor I don't want to have to do that all the time.
For example the iTween path data was on the camera, and I want to move it as is to the new class.
An add on to Visual Studio called Resharper can do that...
Well, I'm using Javascript with $$anonymous$$onoDevelop, so I'm not sure how that would help me.
Also, perhaps I wasn't clear enough, but the refactoring itself isn't a problem. Cutting and pasting of code I can do. I just don't know how to do that to data I define at the Inspector level.
Your answer
Follow this Question
Related Questions
How to save data on iOS? 1 Answer
Unity 3.4 Script Templates 1 Answer
Why does saving a script in runtime lose in game data? 1 Answer
Reading data from one script to another 0 Answers