Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
getConnectionCount
Returns the number of signal connections in the scene.
SceneState.swift:513final func getConnectionCount() -> Int32
The idx
argument used to query connection metadata in other get_connection_*
methods in the interval [0, get_connection_count() - 1]
.
Other members in extension
Types
Type members
Instance members
func getConnectionBinds(idx: Int32
) -> GArray Returns the list of bound parameters for the signal at
idx
.func getConnectionFlags(idx: Int32
) -> Int32 Returns the connection flags for the signal at
idx
. SeeObject.ConnectFlags
constants.func getConnectionMethod(idx: Int32
) -> StringName Returns the method connected to the signal at
idx
.func getConnectionSignal(idx: Int32
) -> StringName Returns the name of the signal at
idx
.func getConnectionSource(idx: Int32
) -> NodePath Returns the path to the node that owns the signal at
idx
, relative to the root node.func getConnectionTarget(idx: Int32
) -> NodePath Returns the path to the node that owns the method connected to the signal at
idx
, relative to the root node.func getConnectionUnbinds(idx: Int32
) -> Int32 Returns the number of unbound parameters for the signal at
idx
.func getNodeCount(
) -> Int32 Returns the number of nodes in the scene.
func getNodeGroups(idx: Int32
) -> PackedStringArray Returns the list of group names associated with the node at
idx
.func getNodeIndex(idx: Int32
) -> Int32 Returns the node’s index, which is its position relative to its siblings. This is only relevant and saved in scenes for cases where new nodes are added to an instantiated or inherited scene among siblings from the base scene. Despite the name, this index is not related to the
idx
argument used here and in other methods.func getNodeInstance(idx: Int32
) -> PackedScene? Returns a
PackedScene
for the node atidx
(i.e. the whole branch starting at this node, with its child nodes and resources), ornull
if the node is not an instance.func getNodeInstancePlaceholder(idx: Int32
) -> String Returns the path to the represented scene file if the node at
idx
is anInstancePlaceholder
.func getNodeName(idx: Int32
) -> StringName Returns the name of the node at
idx
.func getNodeOwnerPath(idx: Int32
) -> NodePath Returns the path to the owner of the node at
idx
, relative to the root node.func getNodePath(idx: Int32, forParent: Bool
) -> NodePath Returns the path to the node at
idx
.func getNodePropertyCount(idx: Int32
) -> Int32 Returns the number of exported or overridden properties for the node at
idx
.func getNodePropertyName(idx: Int32, propIdx: Int32
) -> StringName Returns the name of the property at
propIdx
for the node atidx
.func getNodePropertyValue(idx: Int32, propIdx: Int32
) -> Variant Returns the value of the property at
propIdx
for the node atidx
.func getNodeType(idx: Int32
) -> StringName Returns the type of the node at
idx
.func isNodeInstancePlaceholder(idx: Int32
) -> Bool Returns
true
if the node atidx
is anInstancePlaceholder
.