Skip to content
This repository was archived by the owner on Sep 20, 2025. It is now read-only.
This repository was archived by the owner on Sep 20, 2025. It is now read-only.

Problem passing multiple parameters to "RegisterMethod" registered method #48

@chiguireitor

Description

@chiguireitor

Currently i'm implementing a library in Go which needs to get multiple parameters on a method call:

https://github.com/chiguireitor/godot-gobtcsuite/blob/154bc8fec32c87dc9a8c8f7dba0a67c3850f5605/src/gobtcsuite.go#L280

That call is getting the first parameter right, but the rest of the Variants in the args array come with weird values. For example, calling with 3 ints i do:

fmt.Sprintf("%d %d %d", args[0].GetType(), args[1].GetType(), args[2].GetType()) 

and get

2 81748992 81748992

as result

Edit: It should be noted that the expected result should be 2 2 2 seems like the args array is only getting initialized on the first value, i've been trying to debug this but can't find where's my method getting called to change it on godot's or godot-go's code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions