The HasAnimatedSequences
property indicates whether the texture contains animated sequences. This is useful for determining if a texture is a sprite sheet or has any form of animation embedded within it.
The HasAnimatedSequences
property indicates whether the texture contains animated sequences. This is useful for determining if a texture is a sprite sheet or has any form of animation embedded within it.
Use this property to check if a texture has any animated sequences. This can be particularly useful when working with sprite sheets or textures that are expected to have animations.
// Assume 'texture' is an instance of Sandbox.Texture if (texture.HasAnimatedSequences) { // Handle animated texture Console.WriteLine("This texture has animated sequences."); } else { // Handle static texture Console.WriteLine("This texture does not have animated sequences."); }