EditorInspectorPlugin

    Plugin for adding custom property editors on the inspector.

    EditorInspectorPlugin.swift:24
    class EditorInspectorPlugin

    EditorInspectorPlugin allows adding custom property editors to EditorInspector.

    When an object is edited, the _canHandle(object:) function is called and must return true if the object type is supported.

    If supported, the function _parseBegin(object:) will be called, allowing to place custom controls at the beginning of the class.

    Subsequently, the _parseCategory(object:category:) and _parseProperty(object:type:name:hintType:hintString:usageFlags:wide:) are called for every category and property. They offer the ability to add custom controls to the inspector too.

    Finally, _parseEnd(object:) will be called.

    On each of these calls, the “add” functions can be called.

    To use EditorInspectorPlugin, register it using the addInspectorPlugin(_:) method first.

    Superclasses

    Citizens in SwiftGodot

    Conformances

    • protocol CustomStringConvertible

      A type with a customized textual representation.

    • protocol Equatable

      A type that can be compared for value equality.

    • protocol Hashable

      A type that can be hashed into a Hasher to produce an integer hash value.

    • protocol Identifiable<ID>

      A class of types whose instances hold the value of an entity with stable identity.

    • protocol VariantRepresentable

      Types that conform to VariantRepresentable can be stored directly in Variant with no conversion. These include all of the Variant types from Godot (for example GString, Rect, Plane), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.

    • protocol VariantStorable

      Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.

    Type members

    Instance members

    Show implementation details (6)

    Hide implementation details