0 votes

if you need to see how it looks like. I made a recording here:
https://imgur.com/sthpT4g

The Code
below


func getdragdata(pos):
# Use another colorpicker as drag preview
var cpb = ColorPickerButton.new()
cpb.color = color
cpb.rect
size = Vector2(50, 50)
setdragpreview(cpb)
# Return color as drag data
return color

func candropdata(pos, data):
return typeof(data) == TYPE
COLOR

func dropdata(pos, data):
color = data


Does anyone have a good guess on how to fix this?
Thanks :)

asked Jul 18 in Engine by MoonDuck (20 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.