+ 1
Relating back to Unity C#
Are Public Variables (in Unity) just regularly declared variables (In C#), likewise are Private Variables (In Unity) just constants?
2 Respostas
+ 1
depends on the methods and functions you need to use, could you give me a context?
0
public string publicString = "This is how declare variables in Unity that can be changed in editor.";
private string privateString = "This is how to declare variables that can't be changed in editor";
string csharpString = "This is a regular string that can be changed.";
const string constString = "This is a string that can't be changed";