-
Hello. Currently working on So there are several So how can I properly create overlappingAreas := i.Area.GetOverlappingAreas(i.Temporary)
overlappingAreas.Filter(i.Temporary, method gd.Callable) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can create callables out of any Go function, ie. filter := Callable.New(func(area Area2D.Instance) bool {
return ...
}) |
Beta Was this translation helpful? Give feedback.
You can create callables out of any Go function, ie.
Callable.New(func() { fmt.Println("called from godot") })
, these can take arguments too (and return a value) but you will need to know which type of arguments Godot will be passing in advance.