Repository: godot
Issue: The `Get` and `Set` nodes of the visual script did not work correctly.
Labels: bug,topic:editor,topic:visualscript

### Godot version

v3.6.beta.custom_build [cf157a804]

### System information

Windows 11 & OpenGL ES 3.0 & Renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2

### Issue description

The `Get` and `Set` nodes of the visual script did not work correctly.

See `Steps to reproduce` first.

Looking at the code of `VisualScriptPropertySet` you can see.
![visual_script_getter_setter_setter_1](https://user-images.githubusercontent.com/52756109/190843890-97e84a06-aeb1-45e9-a282-5daf5083a595.png)
`step` of the node instantiated on the visual script.
![visual_script_getter_setter_setter_2](https://user-images.githubusercontent.com/52756109/190843917-41bd956d-55f5-44cb-b2cc-e7be972adeaa.png)
It calls `_process_get` to get the variable pointed to by `index`.
![visual_script_getter_setter_setter_3](https://user-images.githubusercontent.com/52756109/190843955-d3d09507-81fc-459d-9bb1-fd9bd22537e0.png)
![visual_script_getter_setter_setter_4](https://user-images.githubusercontent.com/52756109/190843959-8a392490-4263-40d3-b0e5-d8647ace1189.png)

Looking at the code of `VisualScriptPropertyGet` you can see.
![visual_script_getter_setter_getter_1](https://user-images.githubusercontent.com/52756109/190843862-b8baba5a-18af-4547-b0f4-1f8cb5f65920.png)
It also has an `index` variable, but it is never (correctly) used.(See `Steps to reproduce` last description about `Get`, `Index` is always empty.😞 )
![visual_script_getter_setter_getter_2](https://user-images.githubusercontent.com/52756109/190844010-f57db9a3-df10-483f-9581-3858a8c7d65d.png)


### Steps to reproduce

1. Create two new scripts, one `GDScript` and one `VisualScript`.
2. Add the following variables to `GDScript` (be sure to specify the variable type).
![visual_script_getter_setter_1](https://user-images.githubusercontent.com/52756109/190844090-a0246b0e-aa4d-4a96-ab4e-51e37e37c1fb.png)
3. Add a node with a `GDScript` attached to it in `VisualScript`, generate a `Set` node for variables in the script from this node.
![visual_script_getter_setter_2](https://user-images.githubusercontent.com/52756109/190844209-0f640038-a60e-4b73-8162-9b2ca86e5f9e.png)

Then we find that the `Set` node of the variable has no type (displayed as `any`).
![visual_script_getter_setter_3](https://user-images.githubusercontent.com/52756109/190844277-a708f78f-f40f-48d6-81c5-2327a58eab80.png)

If we make a copy with `CTRL+D` the type will appear.
![visual_script_getter_setter_4](https://user-images.githubusercontent.com/52756109/190844261-be01eeb2-6189-400d-ab89-fd0c3fd6e2b3.png)

Of course, we can also clear the `property` of the `Set` node and re-specify it through the `Inspector` box on the right.
![visual_script_getter_setter_5](https://user-images.githubusercontent.com/52756109/190844343-3cfb8002-669b-47cd-84bd-51e60f28e09d.png)
![visual_script_getter_setter_6](https://user-images.githubusercontent.com/52756109/190844349-f2e710eb-85b3-4e14-a901-a041533fc2f4.png)

After this, the `Index` option (appears and) works again.
![visual_script_getter_setter_7](https://user-images.githubusercontent.com/52756109/190844394-39ff0425-0176-4571-8854-a37961b553e6.png)

=======================================================================
Through the code I found that the `Get` node also has the `Index` variable, but the `Get` node cannot specify the `Index` anyway.

### Minimal reproduction project

Unnecessary. 😄