Open elijah-semyonov opened 2 months ago
Given a class:
@Godot(.tool) class SwiftNode: Node3D { @Callable() public func whatever() { GD.print("boom") } }
The GDScript fails to call whatever with Parser error: Function whatever() not found in base self:
whatever
Parser error: Function whatever() not found in base self
extends SwiftNode func _ready(): whatever() # super.whatever() doesn't work either
Calling whatever on the SwiftNode accessed by $Path from script attached to the scene itself works fine:
extends Node3D # scene.gd func _ready(): $SwiftNode.whatever() # works fine
Given a class:
The GDScript fails to call
whatever
withParser error: Function whatever() not found in base self
:Calling
whatever
on the SwiftNode accessed by $Path from script attached to the scene itself works fine: