IgeObject

Method: drawBounds

Gets / sets the boolean flag determining if this object should have it's bounds drawn when the bounds for all objects are being drawn. In order for bounds to be drawn the viewport the object is being drawn to must also have draw bounds enabled.
drawBounds (Boolean val)
  • Booleanval
Returns *

Enable draw bounds

var entity = new IgeEntity();
entity.drawBounds(true);

Disable draw bounds

var entity = new IgeEntity();
entity.drawBounds(false);

Get the current flag value

console.log(entity.drawBounds());
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point