Improve MultiplayerSynchronizer editor usability
* Add a button to add properties (which lets you select node and property) * Add ability to drag properties and drop them to the editor. * Made the editor transient (not always visible on the bottom) since its not needed most of the time. * Added the ability to pin the editor, in case dragging properties from other nodes is desired.
This commit is contained in:
parent
3568b3deea
commit
12474fd87a
12 changed files with 456 additions and 41 deletions
|
|
@ -167,7 +167,7 @@ Error SceneReplicationInterface::_send_spawn(Node *p_node, MultiplayerSpawner *p
|
|||
uint32_t nid = rep_state->ensure_net_id(oid);
|
||||
|
||||
// Prepare custom arg and scene_id
|
||||
uint8_t scene_id = p_spawner->get_spawn_id(oid);
|
||||
uint8_t scene_id = p_spawner->find_spawnable_scene_index_from_object(oid);
|
||||
bool is_custom = scene_id == MultiplayerSpawner::INVALID_ID;
|
||||
Variant spawn_arg = p_spawner->get_spawn_argument(oid);
|
||||
int spawn_arg_size = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue