InspectableProperty
A structure that houses a property that can be added to a Godot inspector.
InspectableProperty.swift:9struct InspectableProperty<T>
Citizens in SwiftGodot
Typealiases
typealias RegisteredPropertyFunction
A typealias for the the method type used to register a property to Godot for inspectors.
Type members
init(T.Type, getter: @escaping RegisteredPropertyFunction, setter: @escaping RegisteredPropertyFunction
) Creates an inspectable property suitable for registration.
Instance members
let getter: RegisteredPropertyFunction
The getter function that gets the property.
let hostObject: T.Type
The host object the property derives from.
let setter: RegisteredPropertyFunction
The setter function that sets the property.