Closed
Description
What Happened
We'd like to have 3D game creation support in this plugin, of which supporting Vector3 is the first step.
What we need to do at least includes:
parameter_input.tscn
needs to know how to show a Vector3 and allow x,y,z triple input.- Fix drag-drop of Vector3 setter properties from the inspector (drag a Vector3 from inspector to the block canvas while holding Ctrl). This currently fails, see console output below. (The getter blocks, i.e. without holding Ctrl, work OK!)
- The internal code probably needs several other adaptations in order to support Vector3 in addition to Vector2
How to Reproduce
- Add a Node3D block.
- Add Block Coding to it.
- Select the parent Node3D block.
- Drag Position from the Inspector. Keep Ctrl pressed, and drop it in the Block Coding canvas.
- See output error.
Block Coding Plugin Version
v0.8.0
Godot Engine Version
v4.3
Operating System
Endless OS
Logs or command-line output
res://addons/block_code/code_generation/blocks_catalog.gd:283 - Out of bounds get index '9' (on base: 'Dictionary')
res://addons/block_code/code_generation/blocks_catalog.gd:303 - Invalid assignment of property or key 'description' with value of type 'String' on a base object of type 'Nil'.
res://addons/block_code/ui/block_canvas/block_canvas.gd:150 - Invalid assignment of property or key 'defaults' with value of type 'Dictionary' on a base object of type 'Nil'.
Anything else?
No response