gdexport
gdext.annotations.gdexport
final class gdexport(hint: ExportHint = ...) extends StaticAnnotation
Marks a var as an editor-exposed property (gdext #[export]). The macro registers it using a get_<name>/set_<name> accessor pair derived from the field. (Named gdexport because export is a Scala keyword.)
An optional ExportHint customises the inspector widget, mirroring GDScript's @export_range / @export_file / @export_multiline / … :
@gdexport(ExportHint.range(0, 100)) var hp: Int = 50
Attributes
- Graph
-
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
In this article