-
-
Notifications
You must be signed in to change notification settings - Fork 237
Closed
Labels
c: engineGodot classes (nodes, resources, ...)Godot classes (nodes, resources, ...)featureAdds functionality to the libraryAdds functionality to the library
Description
Some Godot types are only constructible through static factory methods, e.g. DirAccess.open()
.
We could provide a method without self
parameter, possibly reusing the singleton functionality.
let dir: Gd<DirAccess> = DirAccess::open("path".into());
We could in a later step also consider static user-provided methods (#[func]
), in case GDExtension allows that.
Metadata
Metadata
Assignees
Labels
c: engineGodot classes (nodes, resources, ...)Godot classes (nodes, resources, ...)featureAdds functionality to the libraryAdds functionality to the library