- Home /
Runtime vs. Editor
Hi, I'm Aaron
The scripting referes to Runtime and Editor classes being different.
I'm glad I found some way to seperate the two in some kind of context, but its incredibly vague to me.
Things are split up like this:
Runtime Classes
Editor Classes
And each has Enumerations and Attributes.
Whats the difference between Runtime and Editor classes? And what are Enumerations and Attributes?
I don't wanna bother anyone, but a sentence explanation for each thing would be nice. My mom is a computer teacher and she doesn't know what it is. And my teachers dont really seem to have time for me.
I tried asking questions on stackexchange sites, but they dont like my questions. So I never get answered. Please dont ban my question. I'm just really confused.
Answer by zharramadar · Apr 17, 2014 at 06:35 PM
The fact you don't know what Enumerations and Attributes are tells me that you don't know even basic C# programming. Basically, a Runtime class is a class that inherits MonoBehavior, and executes during gameplay (runtime). An Editor class is a class that runs and extends Unity Editor itself. Useful for doing editor extensions, new menu funcionalities in Unity and so on. It doesn't inherit Monobehavior, it inherits Editor (if I recall properly).
I strongly suggest that before you delve further into Unity programming, you take some time to learn general C# programming. If you don't have a base to hold on to, how can you even start unity programming? Do not try to understand how Unity classes work when you don't even know what a enumerator is, or class attributes. Go step by step.
Thank you so much for at least giving me a direction to go down. I realy apreciate it.
Bad day?
lol lo and behold the thread necromancy!!! lol
Answering though, I was not trying in any way to depreciate Aaron, just trying to point him in a good direction not only Unity-wise, but in general program$$anonymous$$g. I had a lot of people in my early days that said the same to me as I said to him, and that made me focus in beco$$anonymous$$g a better programmer than just a tool user. I truly hope that in those 2 years since the question was opened, he delved into general program$$anonymous$$g, learned all the stuff he asked here in more detail, and then used Unity in a much more confident and better way.
Your answer

Follow this Question
Related Questions
Unable to access custom editor namespace from runtime assembly 1 Answer
How to run script in editor 1 Answer
When switching scenes some of my scripts stop working 0 Answers
Edit and save animation property at runtime. 0 Answers
Is it possible to run a script in the editor so it doesnt have to run it again the runtime???? 2 Answers