Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REGRESSION: Can no longer get return value from C# method when calling from GDScript. #89584

Closed
Ryan-000 opened this issue Mar 16, 2024 · 2 comments

Comments

@Ryan-000
Copy link
Contributor

Tested versions

4.2.2.rc2.mono (Not present in 4.2.2.rc1.mono)

System information

Desktop

Issue description

I can't get the return value of C# methods anymore when I updated to 4.2.2.rc2. Doesn't matter if it's a preloaded script, or used with [GlobalClass]

(Using. the .call("Add", 1, 2) does work but its not ideal).
image

It works in 4.2.2.rc1
image

extends Node

const SomeCsharpScript = preload("res://SomeCsharpScript.cs")
var instance: SomeCsharpScript = SomeCsharpScript.new()

func _ready() -> void:
	var result = instance.Add(1, 2) # does not work in 4.2.2.rc2.mono
	print(result)

Steps to reproduce

use mrp

Minimal reproduction project (MRP)

MRP.zip

@raulsntos
Copy link
Member

@akien-mga akien-mga added this to the 4.3 milestone Apr 5, 2024
@akien-mga
Copy link
Member

Fixed by #86972, I cherry-picked it for 4.2.2-stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants