Search Unity

Need help with using SpriteManager2's animation

Discussion in 'iOS and tvOS' started by inervy, Jul 16, 2010.

  1. inervy

    inervy

    Joined:
    Jan 29, 2009
    Posts:
    6
    Hello all,
    I'm using SpriteManager2 1.7 on Unity iPhone Advanced 1.7
    My question is, can I play a sprite animation when using a Sprite is under a Managed state?

    I tried:

    Code (csharp):
    1. sprite = gameObject.GetComponent(typeof(Sprite)) as Sprite;
    2. spriteManager.AddSprite(sprite);    // spriteManager points to the SpriteManager within the scene
    3. sprite.Managed(true);
    4. sprite.PlayAnim(0);
    5.  

    PlayAnim seems to be working on a Batched state (when managed=false)
    but couldn't make it on a Managed state.

    Any pointers?