The debugger in USD is a very useful tool but routinely you will only want developers to have access to this feature or you may wish an administrator to give temporary access to a user. Here is how to configure the debugger to be optionally visible depending on user options.
- Create a user setting.
- Add a condition to the display of the debugger.
- Test the application.
Step One – Create a user setting.
In USD settings select the user settings option.
You will then create a new setting called something like “ShowDebugger”, each user who needs to see the debugger will need this option creating. You can see here that I have created a option for me. Notice that I haven’t needed to give a value, simply having or not having the option will be sufficient.
Step Two – Add a condition to the display of the debugger.
In my example, I have already got a toolbar button called “Debug” that is associated with the “Show Debugger” action.
Now I need to add the condition under which the option will be enabled and visible.
Add “[[$Settings.ShowDebugger]g]” to the conditions.
Step Three – Test the application.
With the user option present, when I load USD I have an about toolbar that looks like this ….
If / when I remove the user options my toolbar changes to this …
A simple modification but one that you will hopefully find useful.