Click or drag to resize
SpriteBaseItem Property
Returns information about a specified state of this sprite

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public abstract SpriteState this[
	int state
] { get; }

Parameters

state
Type: SystemInt32

Property Value

Type: SpriteState
Examples
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