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 }
-
debugDrawOptionsExtension methodDefault 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 }
-
isShowingObjectBoundsExtension methodProperty to show/hide all
SKTileObjectobjects in this object.Declaration
Swift
public var isShowingObjectBounds: Bool { get set } -
isShowingAnchorExtension methodProperty to show/hide the node’s anchor point shape.
Declaration
Swift
public var isShowingAnchor: Bool { get set } -
isShowingBoundsExtension methodProperty to show/hide container bounds.
Declaration
Swift
public var isShowingBounds: Bool { get set } -
isShowingTileGridExtension methodProperty to show/hide container tile grid.
Declaration
Swift
public var isShowingTileGrid: Bool { get set } -
isShowingTileGridAndBoundsExtension methodProperty to show/hide both grid & bounds.
Declaration
Swift
public var isShowingTileGridAndBounds: Bool { get set } -
isShowingGridGraphExtension methodProperty to show/hide container pathfinding graph.
Declaration
Swift
public var isShowingGridGraph: Bool { get set }
View on GitHub
Install in Dash
DebugDrawableType Protocol Reference