spriteBox property

SpriteBox spriteBox

The SpriteBox this node is added to, or null if it's not currently added to a SpriteBox.

For most applications it's not necessary to access the SpriteBox directly.

// Get the transformMode of the sprite box
SpriteBoxTransformMode transformMode = myNode.spriteBox.transformMode;

Implementation

SpriteBox get spriteBox => _spriteBox;