# problem with sprite manager

**URL:** https://discussions.unity.com/t/problem-with-sprite-manager/417154
**Category:** 2D
**Tags:** Scripting
**Created:** [July 1, 2010, 11:28pm UTC](https://discussions.unity.com/t/problem-with-sprite-manager/417154 "2010-07-01T23:28:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jacqli](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@Jacqli](https://discussions.unity.com/u/Jacqli)
#### Post date: [July 1, 2010, 11:28pm UTC](https://discussions.unity.com/t/problem-with-sprite-manager/417154/1 "2010-07-01T23:28:48Z")

</div>

Alright. I’m having a silly problem trying to use the free version of Sprite Manager. I know my problem is probably silly, but I really can’t solve it.  
This is the script that’s giving me problems.

```auto
private var smID;
private var smScriptID;

var sprite; 
var spriteWidth : int;
var spriteHeight: int;
var spriteLFUVx : int;
var spriteLFUVy : int;
var UVwidth : int;  
var UVheight : int;

// ***animations*** //

function Start () {
smID = GameObject.Find("SpriteManager");
smScriptID = smID.GetComponent("LinkedSpriteManager");
sprite = smScriptID.AddSprite(gameObject, spriteWidth, spriteHeight, smScriptID.PixelCoordToUVCoord(spriteLFUVx, spriteLFUVy), smScriptID.PixelSpaceToUVSpace(UVwidth, UVheight), true); 
//we create a new animation and initialize it
var idleAnim = new smScriptID.UVAnimation();
idleAnim.BuildUVAnim(smScriptID.PixelCoordToUVCoord(spriteLFUVx, spriteLFUVy), smScriptID.PixelSpaceToUVSpace(UVwidth, UVheight), 6, 1, 6, 24);
sprite.AddAnimation(idleAnim);
}

```

Specifically this line

```auto
var idleAnim = new smScriptID.UVAnimation();

```

I’m guessing I’m being silly and I can’t create an instance from a class from another script. that or I’m doing it the wrong way.  
Help would be appreciate it. As of right now I’m kind of stuck with this… ☹

---

<div class="post-metadata">

### Author: ![Jacqli](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@Jacqli](https://discussions.unity.com/u/Jacqli)
#### Post date: [July 2, 2010, 10:00am UTC](https://discussions.unity.com/t/problem-with-sprite-manager/417154/2 "2010-07-02T10:00:03Z")

</div>

This is the error I’m getting.

```auto
MissingMethodException: Method not found: 'LinkedSpriteManager.UVAnimation'.

```
