We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
get_property
The used GdUnit4 version:
4.1.1 (and master)
The used Godot version:
v4.0.3.stable.official [5222a99f5]
OS including version:
MacOS
Describe the bug
Have a nullable var like var x:RefCounted then run runner.get_property('x')gives a string back
var x:RefCounted
runner.get_property('x')
"The property 'x' not exist checked loaded scene."
Steps to Reproduce
extends Node2D var x:RefCounted func _ready(): printt("X == '{0}'".format([x]))
and test
func test_null_value() -> void: var runner :GdUnitSceneRunner = scene_runner("res://get_property.tscn") var x = runner.get_property("x") assert_str(x).is_null()
Minimal reproduction project:
issue_200.zip
The text was updated successfully, but these errors were encountered:
nice catch 👍
Sorry, something went wrong.
set_property
This is now superseded by #202 thus closes #199
See also #198
Add set_property and fix get_property on SceneRunner (#202)
c4972c6
Fixes #198 and #200 Closes PRs #199 and #201
MikeSchulze
Successfully merging a pull request may close this issue.
The used GdUnit4 version:
4.1.1 (and master)
The used Godot version:
v4.0.3.stable.official [5222a99f5]
OS including version:
MacOS
Describe the bug
Have a nullable var like
var x:RefCounted
then run
runner.get_property('x')
gives a string backSteps to Reproduce
and test
Minimal reproduction project:
issue_200.zip
The text was updated successfully, but these errors were encountered: