-
Notifications
You must be signed in to change notification settings - Fork 25
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
Exported variables don't update in Inspector when debugging #63
Comments
And... nevermind. After getting real-time property updating in godot-rust and godot-mono working flawlessly, it couldn't be a GDNative problem. It seems godot-nim doesn't update Remote Inspector properties if the debug window isn't focused? Is this a bug? If Godot is in the foreground, Inspector values do not update even when the game loop continues just fine. This behavior is unique to godot-nim from what I've tested. I am on Arch Linux but will test on Windows tomorrow. |
Exported properties ( |
Just tested the same projects on Windows, the values do update even when the window isn't focused. This must be a Linux + GDNative bug (as Mono and GDScript work as expected on Linux). Also, I must have been mistaken, because godot-rust now shows the same odd behavior. It can be reproduced on Linux by cloning the
import godot
import godotapi / [node_2d]
gdobj Test of Node2D:
var
testVar* {.gdExport.}: float = 1.0
method ready*() =
print "Readied!"
method process(delta: float64) =
if self.testVar > 1000.0:
self.testVar = 0.0
else:
self.testVar += 1.0
print self.testVar Run the debug, go to Remote and watch Here's a gif demonstrating what it looks like. |
Exported variables in GDScript are updated in real-time in the Inspector when debugging Remote. Is this possible with GDNative/godot-nim? I've tried calling the
propertyListChangedNotify
method ofObject
, which this godot-engine issue refers to, but it seems to do nothing.The text was updated successfully, but these errors were encountered: