developerConsoleVisible?
I can clearly see it in the Editor, and I've see the nice 3rd party extension available, but I want be clear as to whether there's one built into the Player that can be activated.
At this stage, building with the Development Build option is a matter of course. So would I be able to drop down a console and sniff variables and poke at functions in runtime?
EDIT: I'm using the Editor on a PC, testing with PC standalone and Web Player builds.
I've never used it, I poked at it and tried different build options but I couldn't see it or any logs or errors that I logged before and after setting it to true. Doesn't appear to do anything.
"I can clearly see it in the Editor"
Where do you see it in the editor? I see nothing out of the ordinary.
Isn't it the tab that's at the bottom by default, plus a single-line pane beneath that?
You mean this one that is visible, that isn't visible? :)
void Update()
{
Debug.developerConsoleVisible = true;
if (Debug.developerConsoleVisible)
Debug.Log("VISIBLE");
Doesn't appear to work. I see nothing. It's false all the time.
Answer by Statement · Nov 14, 2015 at 12:46 PM
@enkephalin07: Well here's one thread that hints that it doesn't do anything in Unity 5. Here's another thread that has a comment suggesting it only happen on PC platform but note that the OP is using it for editor scripts and the comment is for players. Here's a third thread that suggests some changes were made in/before 4.x when clearing in the editor. The API was added in Unity 4.1.0.
If we were to put those scraps of information together;
Not supported in Unity 5?
Was at least supported in the editor?
Only supported for PC platform?
Unclear if supported on players.
Not supported on iOS/Android players?
Introduced in Unity 4.1.0.
Reading the threads, I become more and more convinced it used to tell if the console in the editor was visible. This is just my interpretation of reading peoples usage.
There doesn't appear to be much information about this on first few pages of a google search. I guess you could send a bug report with type documentation and ask them to provide an example. Include a link to this question so they can see people are having issues figuring out what it's expected to do. When I saw the API I also first assumed it would enable a console in a built player (because the API is accessible in UnityEngine.dll, not UnityEditor.dll), but now I am not so sure.
You could also download Unity 4.1.0 and see if it does anything differently.
Only to save people who want to go to the bottom of this time; you can't easily tell without source code what the effect is, when calling the setter of the property. It's not in managed code.
// UnityEngine.Debug
public static extern bool developerConsoleVisible
{
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
I'm talking about a developer console in engine, not in editor. Is there such a thing built-in?
I have never seen one. I've only ever seen people do their own by registering to logMessageReceived
Thank you. I want to elevate your reply to an answer, because that's what it is, but I don't know how to do that.
Using log$$anonymous$$essageReceived with System.Console is what I have been doing, but a classic 3D dropdown console would be much more convenient and flexible. It's been the superior option since Quake engine was new, so I expected a 3D development platform would naturally have it integrated.
Your answer
![](https://koobas.hobune.stream/wayback/20220612042845im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Game pauses when the idle animation does one full loop 0 Answers
Visually draw multiple Gizmo 2D circles around a prefab? 0 Answers
Script wont work when Debug log removed 0 Answers
My if-statement is returning true but it's not processing the code inside the brackets.. 0 Answers
How to determinate a difference between the 2 RenderTextures? 0 Answers