Variable Capitalization in Scripts

Hello,

I have a quick question.

Does it matter if I capitalize the name of a veritable in Unity Javascript.

For instance, I have this variable:

var YesButton : GameObject;

Does it matter if I have the “YesButton” capitalized or not? Out of habit I have been using capitalization in my variables.

should it be:

var yesButton : GameObject;

if so, what is the impact of leaving it capitalized? Should I go back and change a hole lot code? I don’t seem to be having any issues. but can it hinder performance?

It cannot hinder CPU or RAM performance, only your own. :slight_smile:

Capitalization is a personal preference, nothing more. There are various standards that people follow. Choose one that works for you if working solo, work within the scheme if on a team that already has a coding standard.

Thank goodness!! I like that answer!!