EngineDebugger
Exposes the internal debugger.
EngineDebugger.swift:11class EngineDebugger
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.
Superclasses
class Object
Base class for all other classes in the engine.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
static func hasCapture(name: StringName
) -> Bool Returns
true
if a capture with the given name is present otherwisefalse
.static func hasProfiler(name: StringName
) -> Bool Returns
true
if a profiler with the given name is present otherwisefalse
.static func isActive(
) -> Bool Returns
true
if the debugger is active otherwisefalse
.static func isProfiling(name: StringName
) -> Bool Returns
true
if a profiler with the given name is present and active otherwisefalse
.static func profilerAddFrameData(name: StringName, data: GArray
) Calls the
add
callable of the profiler with givenname
anddata
.static func profilerEnable(name: StringName, enable: Bool, arguments: GArray
) Calls the
toggle
callable of the profiler with givenname
andarguments
. Enables/Disables the same profiler depending onenable
argument.static func registerMessageCapture(name: StringName, callable: Callable
) Registers a message capture with given
name
. Ifname
is “my_message” then messages starting with “my_message:” will be called with the given callable.static func registerProfiler(name: StringName, profiler: EngineProfiler?
) Registers a profiler with the given
name
. SeeEngineProfiler
for more information.static func sendMessage(String, data: GArray
) Sends a message with given
message
anddata
array.static func unregisterMessageCapture(name: StringName
) Unregisters the message capture with given
name
.static func unregisterProfiler(name: StringName
) Unregisters a profiler with given
name
.class var godotClassName: StringName