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 /
avatar image
0
Question by CapyKing · Nov 01, 2012 at 04:41 PM · c#methods

I know C#, but what Unity methods should I learn?

OK. I have been on this website: http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.html but there are a lot of methods. Please could you give me a list of main methods used in unity? I have learnt to use C#. I can write custom classes, methods; I understand inheritance, objects and their types etc...

Comment
Add comment · Show 3
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 Montraydavis · Nov 01, 2012 at 04:43 PM 0
Share

You should use whichever language you best know, unless you specifically want to learn another. They can pretty much all do the same exact things in Unity. It's really all preference .

avatar image fafase · Nov 01, 2012 at 04:48 PM 0
Share

You might want to look at the common beginner mistakes from here: http://unitygems.com/mistakes1/

avatar image Gabo_campitelli · Nov 01, 2012 at 05:00 PM 0
Share

Theres a serie of videos on youtube from the tornado twins where they make a small game called "wor$$anonymous$$ator" "tornado twins tutorial worm" search on youtube should bring it. That video is good to get you going with unity.

2 Replies

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

Answer by Bunny83 · Nov 01, 2012 at 05:23 PM

You can'r really "learn a method". All you need to know what a method is doing and which callbacks (overridable methods) are called in which situations. Just take the time and browse through them. The detailed description explain 95% what you have to know.

For example OnBecameVisible: The description clearly explains that this callback is invoked by a Renderer component. Almost all callbacks belong to a certain component. MonoBehaviour has some that belong to itself (since MonoBehaviour is also a component).

Here i grouped them into a more logical order:

MonoBehaviour itself
Update, LateUpdate, FixedUpdate, Awake, Start, Reset
OnApplicationPause, OnApplicationFocus, OnApplicationQuit
OnLevelWasLoaded, OnEnable, OnDisable, OnDestroy
OnGUI

Send by Collider
OnMouseEnter,OnMouseOver,OnMouseExit,OnMouseDown,OnMouseUp,OnMouseUpAsButton,OnMouseDrag

Send by Rigidbody for "isTrigger"-collider
OnTriggerEnter,OnTriggerExit,OnTriggerStay

Send by Rigidbody for normal collider
OnCollisionEnter,OnCollisionExit,OnCollisionStay

Send by CharacterController OnControllerColliderHit

Send by Physx joint component
OnJointBreak

Send by ParticleCollider
OnParticleCollision

Send by Renderer
OnBecameVisible, OnBecameInvisible

Send by Camera
OnPreCull, OnPreRender, OnPostRender, OnRenderObject, OnWillRenderObject, OnRenderImage

Only in Editor
OnDrawGizmosSelected,OnDrawGizmos

Send when using Networking
OnPlayerConnected, OnServerInitialized, OnConnectedToServer, OnPlayerDisconnected,
OnDisconnectedFromServer, OnFailedToConnect

Send when using MasterServer
OnFailedToConnectToMasterServer, OnMasterServerEvent

Send by NetworkView components
OnNetworkInstantiate, OnSerializeNetworkView

Send by AudioSource components
OnAudioFilterRead

Comment
Add comment · 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
1

Answer by Eric5h5 · Nov 01, 2012 at 05:43 PM

You should know them all, or at least be aware of them. It's not expected that you should memorize the entire API (you can always just look stuff up in the docs for exact usage when needed), but you should know what's available so you don't waste time reinventing the wheel.

Comment
Add comment · 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

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

16 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

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Moving and Attacking 0 Answers

Rays and tags help? 1 Answer

Fading To New Scene Problem? 1 Answer


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