Skip to content

Support Vector3 ($400 bounty) #330

Closed
@manuq

Description

@manuq

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

  1. Add a Node3D block.
  2. Add Block Coding to it.
  3. Select the parent Node3D block.
  4. Drag Position from the Inspector. Keep Ctrl pressed, and drop it in the Block Coding canvas.
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions