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

In Custom Class Documentation a Function cannot return 'Variant' #80734

Closed
Jay-Dorcat opened this issue Aug 17, 2023 · 0 comments · Fixed by #80745
Closed

In Custom Class Documentation a Function cannot return 'Variant' #80734

Jay-Dorcat opened this issue Aug 17, 2023 · 0 comments · Fixed by #80745

Comments

@Jay-Dorcat
Copy link

Jay-Dorcat commented Aug 17, 2023

Godot version

v4.1.1.stable.official [bd6af8e]

System information

Windows 10

Issue description

As said in the Title Custom Class Documentation a Function cannot return 'Variant' and will instead be shown to return void, even though Built-in Classes are shown to return 'Variant', an example would be 'Array'
image
image

Steps to reproduce

extends Node
class_name CustomClass

func VariantFunction() -> Variant:
	return 10

Now when checking the Generated Documentation it will appear like: void VariantFunction()

Minimal reproduction project

N/A

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

Successfully merging a pull request may close this issue.

2 participants