Attached Macromigueldeicaza.swiftgodot 0.46.0SwiftGodot
NativeHandleDiscarding
Low-level: A macro that automatically implements init(nativeHandle:)
for nodes.
@attached(member, names: named(init(nativeHandle:))) macro NativeHandleDiscarding()
Use this for a class that has a required initializer with an UnsafeRawPointer
.
@NativeHandleDiscarding
class MySprite: Sprite2D {
...
}