Class EngineDebugger
- Namespace
- Godot
- Assembly
- GodotSharp.dll
EngineDebugger handles the communication between the editor and the running game. It is active in the running game. Messages can be sent/received through it. It also manages the profilers.
public static class EngineDebugger
- Inheritance
-
EngineDebugger
- Inherited Members
Properties
Singleton
public static EngineDebuggerInstance Singleton { get; }
Property Value
Methods
HasCapture(StringName)
Returns true if a capture with the given name is present otherwise false.
public static bool HasCapture(StringName name)
Parameters
nameStringName
Returns
HasProfiler(StringName)
Returns true if a profiler with the given name is present otherwise false.
public static bool HasProfiler(StringName name)
Parameters
nameStringName
Returns
IsActive()
Returns true if the debugger is active otherwise false.
public static bool IsActive()
Returns
IsProfiling(StringName)
Returns true if a profiler with the given name is present and active otherwise false.
public static bool IsProfiling(StringName name)
Parameters
nameStringName
Returns
ProfilerAddFrameData(StringName, Array)
Calls the add callable of the profiler with given name and data.
public static void ProfilerAddFrameData(StringName name, Array data)
Parameters
nameStringNamedataArray
ProfilerEnable(StringName, bool, Array)
Calls the toggle callable of the profiler with given name and arguments. Enables/Disables the same profiler depending on enable argument.
public static void ProfilerEnable(StringName name, bool enable, Array arguments = null)
Parameters
nameStringNameenableboolargumentsArray
RegisterMessageCapture(StringName, Callable)
Registers a message capture with given name. If name is "my_message" then messages starting with "my_message:" will be called with the given callable.
Callable must accept a message string and a data array as argument. If the message and data are valid then callable must return true otherwise false.
public static void RegisterMessageCapture(StringName name, Callable callable)
Parameters
nameStringNamecallableCallable
RegisterProfiler(StringName, EngineProfiler)
Registers a profiler with the given name. See EngineProfiler for more information.
public static void RegisterProfiler(StringName name, EngineProfiler profiler)
Parameters
nameStringNameprofilerEngineProfiler
SendMessage(string, Array)
Sends a message with given message and data array.
public static void SendMessage(string message, Array data)
Parameters
UnregisterMessageCapture(StringName)
Unregisters the message capture with given name.
public static void UnregisterMessageCapture(StringName name)
Parameters
nameStringName
UnregisterProfiler(StringName)
Unregisters a profiler with given name.
public static void UnregisterProfiler(StringName name)
Parameters
nameStringName