This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |