Good Unity Scripting Habit

Code management? Scripting habit? Techniques?

We just scripted a bunch of functions, but when something decidedly changes name…
like using Main camera into splitting it to 2-3 camera say, camera1, camera2, spectatorcam, and so on…
we must change almost everything using the find-next-replace.
Those are one of the simpler case but i worry if we have to tackle more further in the future?

Is there a habit to document troubleshooting? Or perhaps something practical to ensure our code mobility and flexibility?
We’re a team of two and we rely on concept art to guide our design mostly. :slight_smile:

Sounds like it’s time for you to learn about refactoring.

1 Like

You want to avoid using strings if at all possible. This makes refractor img much easier.

1 Like

Well now this is complicated…

I haven’t even done my homework on…Inheritance, polymorphism etc