Static Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
registerMessageCapture(name: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.
static func registerMessageCapture(name: StringName, callable: 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
.
Other members in extension
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 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