The HasAnimatedSequences
property indicates whether the texture contains animated sequences. This is useful for determining if a texture is part of an animation or sprite sheet that includes multiple frames or sequences.
The HasAnimatedSequences
property indicates whether the texture contains animated sequences. This is useful for determining if a texture is part of an animation or sprite sheet that includes multiple frames or sequences.
Use the HasAnimatedSequences
property to check if a texture has any animated sequences. This can be particularly useful when working with sprite sheets or animated textures, allowing you to handle them appropriately in your rendering logic.
// Example of checking if a texture has animated sequences Texture myTexture = Texture.Load("path/to/texture"); if (myTexture.HasAnimatedSequences) { // Handle animated texture Console.WriteLine("This texture has animated sequences."); } else { // Handle static texture Console.WriteLine("This texture does not have animated sequences."); }