Inherits: Resource < RefCounted < Object
Configuration for properties to synchronize with a MultiplayerSynchronizer.
void | add_property ( NodePath path, int index=-1 ) |
get_properties ( ) const | |
has_property ( NodePath path ) const | |
property_get_index ( NodePath path ) const | |
property_get_replication_mode ( NodePath path ) | |
property_get_spawn ( NodePath path ) | |
property_get_sync ( NodePath path ) | |
property_get_watch ( NodePath path ) | |
void | property_set_replication_mode ( NodePath path, ReplicationMode mode ) |
void | property_set_spawn ( NodePath path, bool enabled ) |
void | property_set_sync ( NodePath path, bool enabled ) |
void | property_set_watch ( NodePath path, bool enabled ) |
void | remove_property ( NodePath path ) |
0
Do not keep the given property synchronized.
1
Replicate the given property on process by constantly sending updates using unreliable transfer mode.
2
Replicate the given property on process by sending updates using reliable transfer mode when its value changes.
Adds the property identified by the given path to the list of the properties being synchronized, optionally passing an index.
Note: For details on restrictions and limitations on property synchronization, see MultiplayerSynchronizer.
Returns a list of synchronized property NodePaths.
Returns whether the given path is configured for synchronization.
Finds the index of the given path.
Returns the replication mode for the property identified by the given path. See ReplicationMode.
Returns whether the property identified by the given path is configured to be synchronized on spawn.
Returns whether the property identified by the given path is configured to be synchronized on process.
Deprecated. Use property_get_replication_mode instead.
Returns whether the property identified by the given path is configured to be reliably synchronized when changes are detected on process.
Deprecated. Use property_get_replication_mode instead.
Sets the synchronization mode for the property identified by the given path. See ReplicationMode.
Sets whether the property identified by the given path is configured to be synchronized on spawn.
Sets whether the property identified by the given path is configured to be synchronized on process.
Deprecated. Use property_set_replication_mode with REPLICATION_MODE_ALWAYS instead.
Sets whether the property identified by the given path is configured to be reliably synchronized when changes are detected on process.
Deprecated. Use property_set_replication_mode with REPLICATION_MODE_ON_CHANGE instead.
Removes the property identified by the given path from the configuration.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_scenereplicationconfig.html