Hello everybody.
I'm hoping to start an "explain like I'm five" thread regarding C# scripting inside Unity. I am asking these questions here because when I look for the answers on google I just get more confused.
environment info:
I am using Unity 4.6 and writing C# scripts in MonoDevelop 4.0.1. I have classes which are not descendants of MonoBehaviours, but ultimately all of my game logic is tied to update loops inside script components attached to GameObjects in Unity scenes.
I am now 5 years old please be nice
. Here are the questions:
1) Today I wanted to use a Dictionary that would use a pair of Objects as the key. Instead of writing a wrapper class for this specific purpose and defining the hash code myself, I hoped to find a generic solution. Online I see that .NET 4.0 has a generic Tuple class. But my compiler says this data structure doesn't exist. How do I find what version of .NET am I using? Is it possible to change this version to 4.0? If I am already using 4.0, what import statement do I need?
2) I don't like MonoDevelop. Is it possible to set up my project in Visual Studio (and still have in-editor step-by-step debugging)?
I will add more questions as I think of them. If anyone else has questions please feel free to ask them.