// ------------------------------------------------------------------ /// \param _animClip the sprite animatoin clip /// \param _objects the texture objects /// add textures to sprite animation clip as new frames // ------------------------------------------------------------------ public static void AddFrames(this exSpriteAnimClip _animClip, Object[] _objects) { foreach (Object o in _objects) { if (o is Texture2D) { Texture2D t = o as Texture2D; _animClip.AddFrame(t); // NOTE: it will SetDirty here } } }