DebugDrawableType

@objc
public protocol DebugDrawableType

The DebugDrawableType protocol provides an interface to visualizing various object attributes, such as displaying a visual grid over the container, or highlighting object bounds.

Properties

  • _debugLevel: debugging visualization level.
  • Value representing a debug visualization level.

    Declaration

    Swift

    @objc
    var _debugLevel: UInt8 { get set }

Extensions

  • debugDrawOptions Extension method

    Default debug draw options for all node types.

    Usage

    • drawGrid: visualize the nodes’s tile grid.
    • drawFrame: visualize the nodes’s bounding rect.
    • drawGraph: visualize the nodes’s pathfinding graph.
    • drawObjectFrames: draw object’s bounding shapes.
    • drawAnchor: draw the layer’s anchor point.

    Declaration

    Swift

    public var debugDrawOptions: DebugDrawOptions { get set }

Convenience Properties