• 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 MountDoomTeam · Feb 06, 2013 at 07:35 PM · displayfunctionsinformationmonitor

a way to monitor data and functions being called?

Sometimes when you try some different code written by someone else it is very unclear and it is nice to see the names of what functions are being called when you click on different things.

Is there a way to display that in the error screen?

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

2 Replies

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

Answer by Paulo-Henrique025 · Feb 06, 2013 at 07:39 PM

You can Debug using MonoDevelop or just put Debug.Log("Something Called here") inside the functions.

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 MountDoomTeam · Feb 06, 2013 at 09:27 PM 0
Share

Thanks, I could do that already as you say!, I just had a complicated demo and I wanted to see what functions were being called when I click on interactive things because the code is huge so finding them is difficult. I mean I didn't know what functions were being called so I wanted to see in unity, perhaps I would have to find every function and print the name of the function inside it encode.

avatar image Paulo-Henrique025 · Feb 06, 2013 at 09:32 PM 1
Share

I'm sure you can analise the call stack using mono, that would make you life easier :)

avatar image MountDoomTeam · Feb 07, 2013 at 05:47 PM 0
Share

oh call stack, that's a new one for me! thanks! i found this about them. shame i like N++ so much! http://docs.unity3d.com/Documentation/$$anonymous$$anual/Debugger.html

avatar image
1

Answer by Jeremy Hindle · Feb 07, 2013 at 06:10 PM

If you are a Unity3D Pro License holder you can also use the Profiler window(especially if you are making a resource usage comparison between your own code and someone else's) and make sure you have the "Deep Profile" option selected.

It will list all the resources used when you do something in your game alongside the function being called.

Comment
Add comment · Show 2 · 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 Paulo-Henrique025 · Feb 07, 2013 at 06:41 PM 0
Share

But if the function is just a callback, called only 1x, it will appear in the profiler?

avatar image Jeremy Hindle · Feb 07, 2013 at 07:09 PM 0
Share

Pretty sure it does if you turn on "Deep Profile".

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

11 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

Related Questions

Find which display game is on 0 Answers

My multi-monitor support is broken. How can I fix this? 2 Answers

How to figure out display # chosen in Display Resolution Dialog? 0 Answers

Multiple Game Cameras with the Oculus Rift 1 Answer

Can I display my screen on Unity? 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