Returns information about a specified state of this sprite
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public abstract SpriteState this[
int state
] { get; }
Parameters
- state
- Type: SystemInt32
Property Value
Type:
SpriteStateExamples The following code shows how you might retrieve the height
of a sprite's crouching state assuming it has one:
crouchHeight = this[State.Crouch].LocalBounds.Height;
See Also