Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 overunity3d · Aug 05, 2011 at 06:16 PM · modelcomponentmonobehaviourlayerbehaviour

RTFM afterview

Where is there a good explanation of the Monobehaviour, Behaviour, and Component as a complex layering model?

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 overunity3d · Sep 05, 2011 at 06:49 PM 0
Share

Ins$$anonymous$$d of posting countless questions I will just post remarks as answers so that readers can follow along and get insight to complex lines of code and calculations.

I would like to use the scripting manual to dissect this statement: Vector3.Cross(rigidbody.angular.velocity, Vector3.up).normalized;

As I type this line the next dot item is missing either in case sensitivity or all together.

So there is discontinuity across the Unity product.

avatar image Bunny83 · Sep 06, 2011 at 02:06 PM 0
Share

I'm not sure where you get this line of code, but if it's from the documentation you've just found a mistake. A Rigidbody component doesnt have something like "angular". To get the angular velocity of the rigidbody the required property is called "angularVelocity"

I'm still not sure if you understand what a "dot" actually does. The dot tells the compiler to access a member of the object/struct in front of the dot. The rigidbody is actually a property of Component which allows you to easily access the Rigidbody component of the GameObject this script is attached to.

rigidbody will return the reference to a Rigidbody component but only when such a component is attached to the GameObject, otherwise it returns null. If you take a look into the documentation to Rigidbody you can see all members variables/ properties and methods you can access.

avatar image Bunny83 · Sep 06, 2011 at 02:10 PM 0
Share

ps. if you want to add details to your question you should use the "edit" button below your question or use comments.

1 Reply

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

Answer by Bunny83 · Aug 05, 2011 at 10:08 PM

I'm not sure what you're after... Do you want to know the inheritance chain of the classes?

The documentation of each class have a cross link to the base class at the top.
Also this page lists all classes that comes with Unity in it's hierarchy.

The exact inheritance of most classes is quite irrelevant since they are all sealed. For the runtime only MonoBehaviour and ScriptableObject are meant to be used as base-class (at least i can't remember others at the moment).

You should overthink your question title and add some more details since it's not really clear what you want and this page should help the whole community.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How to use rigidbody for characters 0 Answers

Component's Start/Awake methods not being called 2 Answers

MMD How to export model and animations to Unity as 3rd person controller? 2 Answers

How do I change component properties without overriding them with parent component? 1 Answer

Can I make the camera see only a part of an object? 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