Signal4
Signal support.
EditorInspector.swift:328class Signal4
Use the connect(flags:_:)
method to connect to the signal on the container object, and disconnect(_:)
to drop the connection.
You can also await the emitted
property for waiting for a single emission of the signal.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (18) members.
Types
class Signal1
Signal support.
class Signal2
Signal support.
class Signal3
Signal support.
class Signal5
Signal support.
class Signal6
Signal support.
class Signal7
Signal support.
Type members
Instance members
var editedObjectChanged: SimpleSignal
Emitted when the object being edited by the inspector has changed.
var objectIdSelected: Signal5
Emitted when the Edit button of an
Object
has been pressed in the inspector. This is mainly used in the remote scene tree Inspector.var propertyDeleted: Signal3
Emitted when a property is removed from the inspector.
var propertyEdited: Signal6
Emitted when a property is edited in the inspector.
var propertyKeyed: Signal2
Emitted when a property is keyed in the inspector. Properties can be keyed by clicking the “key” icon next to a property when the Animation panel is toggled.
var propertySelected: Signal1
Emitted when a property is selected in the inspector.
var propertyToggled: Signal7
Emitted when a boolean property is toggled in the inspector.
var resourceSelected: Signal4
Emitted when a resource is selected in the inspector.
var restartRequested: SimpleSignal
Emitted when a property that requires a restart to be applied is edited in the inspector. This is only used in the Project Settings and Editor Settings.
func getEditedObject(
) -> Object? Returns the object currently selected in this inspector.
func getSelectedPath(
) -> String Gets the path of the currently selected property.
Citizens in SwiftGodot
Instance members
var emitted: Void
You can await this property to wait for the signal to be emitted once
func connect(flags: Object.ConnectFlags, @escaping (_ resource: Resource, _ path: String) -> ()
) -> Object Connects the signal to the specified callback
func disconnect(Object
) Disconnects a signal that was previously connected, the return value from calling
connect(flags:_:)