Relating back to Unity C# | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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?

21st Feb 2017, 9:27 PM
TheOnly_Anti
TheOnly_Anti - avatar
2 ответов
+ 1
depends on the methods and functions you need to use, could you give me a context?
28th Feb 2017, 8:46 PM
Jan Andersson
Jan Andersson - avatar
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";
10th Mar 2017, 4:47 PM
TheOnly_Anti
TheOnly_Anti - avatar