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 }
-
debugDrawOptions
Extension 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 }
-
isShowingObjectBounds
Extension methodProperty to show/hide all
SKTileObject
objects in this object.Declaration
Swift
public var isShowingObjectBounds: Bool { get set }
-
isShowingAnchor
Extension methodProperty to show/hide the node’s anchor point shape.
Declaration
Swift
public var isShowingAnchor: Bool { get set }
-
isShowingBounds
Extension methodProperty to show/hide container bounds.
Declaration
Swift
public var isShowingBounds: Bool { get set }
-
isShowingTileGrid
Extension methodProperty to show/hide container tile grid.
Declaration
Swift
public var isShowingTileGrid: Bool { get set }
-
isShowingTileGridAndBounds
Extension methodProperty to show/hide both grid & bounds.
Declaration
Swift
public var isShowingTileGridAndBounds: Bool { get set }
-
isShowingGridGraph
Extension methodProperty to show/hide container pathfinding graph.
Declaration
Swift
public var isShowingGridGraph: Bool { get set }