Static Methodmigueldeicaza.swiftgodot 0.46.0SwiftGodot
makeOrUnwrap(_:)
Unwraps an object from a variant. This is useful when you want one method to call that will return the unwrapped Variant, regardless of whether it is a SwiftGodot.Object or not.
VariantStorable.swift:31static func makeOrUnwrap(_ variant: Variant) -> Self?
Other members in extension
Type members
static func makeOrUnwrap(Variant
) -> Self? Unwraps an object from a variant.