Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This post has been wikified, any user with enough reputation can edit it.
avatar image
2
Question by aweshum · Apr 17, 2014 at 05:07 PM · editorruntime

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:

  1. Runtime Classes

  2. 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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer

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.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image aweshum · Apr 17, 2014 at 07:10 PM 0
Share

Thank you so much for at least giving me a direction to go down. I realy apreciate it.

avatar image wam3d · Aug 18, 2016 at 02:23 AM -1
Share

Bad day? alt text

programador-enojado-con-los-vidrios-que-lanzan-el.jpg (7.1 kB)
avatar image zharramadar · Aug 18, 2016 at 05:29 AM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges