BEDisplayDebugger

type:
extension
author:
Brian Ensor
description:
A class to debug display object bounds
lastupdate:
2011-06-11
compatible:
v1.2
tag:
debug, border, object, display, bounds, view
homepage:
https://gist.github.com/1020864
download:
https://gist.github.com/gists/1020864/download


My Wiki Page

Usage

BEDisplayDebugger places bounds boxes around visible objects to assist in finding placement issues. For example, this would show you if a sprite was preventing your button from getting triggered.

To use, just add this code to your stage. The levels value lets you decide how deep the class iterates into the display tree. Level 1 is a direct descendant of the stage.

BEDisplayDebugger *debugger = [BEDisplayDebugger debuggerWithLevels:3];
[self addChild:debugger];

That's all you need to do!

Changelog

  • 2011/06/11 21:19: First public version

Source Code

Discussion

No comments so far. Feel free to edit this part of the page.

  extensions/bedisplaydebugger.txt · Last modified: 2015/09/14 11:15 (external edit)
 
Powered by DokuWiki