Hi, I'm trying to do something when dragging the CollisionPolygon's handle.
I used the _set()
function to do this but it is not working. It even crashes when I modifier the size field.
Is there a better way to do this?
signal polygon_changed(collision_polygon)
func _set(property: String, value) -> bool:
if !property in self:
print("property %s is not in property_list" % property)
return false
else:
self[property] = value
if property == "polygon":
emit_signal("polygon_changed", self)
return true
