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 bahmrockk · Mar 15, 2014 at 08:21 PM · physicsdebugsleep

Figuring out status (sleep/awake in this example) of objects

Hi!

Quite straight forward example. I have a quite complex physics setup and would like to custom check my objects.

My current approach is a "onMouseButton" which gives a Debug.Log with the status, but I would love to be able to press the Pause button, select an object and ... well, use the inspector to inspect an object, not to see the setup it was once upon a time spawned with :)

In general, I'm not proficient with debugging in Unity, any links to good tutorials are appriciated as well!

Thanks!

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
1

Answer by fafase · Mar 15, 2014 at 08:37 PM

The values you see in the Inspector are the public one at the current time, but if you want to see the private ones, tick the little down arrow in the top right corner of the Inspector, nect to the lock and choose Debug. This will show all private members. Note static won't show ever as well as Dictionary, even public ones.

Now the best for debug and development would be to learn the Unity Unit Test.

http://blogs.unity3d.com/2013/12/18/unity-test-tools-released/

https://www.youtube.com/watch?v=PAhp_1uXLDM

It is free.

Comment
Add comment · Show 1 · 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 bahmrockk · Mar 15, 2014 at 09:01 PM 0
Share

thanks! The unity-tests look really interesting, will have a look. Sadly, physics states are not user defined variables, they are inherent to the rigidbody2d in this case - to make them visible with the pulldown you described, I'd have to assign them to a variable manually - which is exactly what I want to avoid to lower the amount of bloat/debug code - although I thought it's easier to get access to those properties. :/

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

20 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

Related Questions

do rigidbodies fall asleep at the same time? 1 Answer

"Invalid AABB" error whenever rigidbody moves 7 Answers

Rigidbody not sleeping 1 Answer

Why does Debug.DrawLine offset sometimes? 1 Answer

Why are my Rigidbodies not sleeping? 0 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