DebugDrawOptions
public struct DebugDrawOptions : OptionSet
The DebugDrawOptions structure represents debug drawing options for SKTiled objects.
Usage
// show the map's grid & bounds shape
tilemap.debugDrawOptions = [.drawGrid, .drawFrame]
// turn off layer grid visibility
layer.debugDrawOptions.remove(.drawGrid)
Properties
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 let rawValue: UInt8 -
Default options.
Declaration
Swift
public static let `default`: DebugDrawOptions -
Declaration
Swift
public init(rawValue: UInt8 = 0)
-
Descriptor values for each option.
Declaration
Swift
public var strings: [String] { get }
View on GitHub
Install in Dash
DebugDrawOptions Structure Reference