Skip to content

Instantly share code, notes, and snippets.

View WinstonHartnett's full-sized avatar

Winston Hartnett WinstonHartnett

View GitHub Profile
@WinstonHartnett
WinstonHartnett / test.nim
Created July 18, 2020 22:30
Godot inspector bug?
import godot
import godotapi / [node_2d]
# Make sure to add the line `import test` to `stub.nim`
gdobj Test of Node2D:
var testVar {.gdExport.} = 0.0
method ready*() = print "Readied!"
method process*(delta: float64) =
import godot
import godotapi / [node_2d]
gdobj Test of Node2D:
var testVar* {.gdExport.}: float = 1.0
method ready*() = print "Readied!"
method process(delta: float64) =
# We can see the value change as expected in Output