Vector4 SequenceData { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The SequenceData property of the Texture class provides information about the texture's sprite sheet if it is a sprite sheet. This data is typically used in shaders to handle sprite animations or other graphical effects. The property returns a Vector4 that encodes the sequence data, but the specific contents of this vector are generally not something you need to manipulate directly.

Usage

Use the SequenceData property when you need to access the sprite sheet information of a texture. This is particularly useful when working with shaders that require knowledge of the sprite sheet layout to correctly render animations or effects.

Example

// Example of accessing the SequenceData property
Texture myTexture = ...; // Assume this is a valid texture object
Vector4 sequenceData = myTexture.SequenceData;

// Use sequenceData in a shader or for debugging purposes
// Note: The actual use of sequenceData will depend on your specific shader logic