spriteBoxPerformedLayout method

void spriteBoxPerformedLayout()

Called whenever the SpriteBox is modified or resized, or if the device is rotated.

Override this method to do any updates that may be necessary to correctly display the node or node tree with the new layout of the SpriteBox.

void spriteBoxPerformedLayout() {
  // Move some stuff around here
}

Implementation

void spriteBoxPerformedLayout() {}