- Home /
How do I play a list of Texture2Ds on an iPod Touch?
Hi,
I am trying to capture each frame of an animation of my avatar so that I can display them on the main UI of the game. To start, I created a secondary camera in the scene that can only see the character. When a button is pressed, a 'Loading' screen overlays the scene, while the animations are timed and recorded in the background. Each animation is saved as a list of Texture2D images in a Singleton class.
The reason that I want to capture the animation and am not doing this through a sprite sheet is because the player is able to customize their character.
When I load the main game and and iterate through the list to play the animations, it works flawlessly. I am able to play the idle cycle, and play other captured animation sequences on command.
However, when I transfer the project to the iPod Touch, the textures no longer load. I am unable to see any of them. Originally, I had been playing the images on a plane and it didn't work, then I tried using a GUITexture and still didn't have any luck. I've even tried extracting the pixel data from a single frame, and reconstructing it in the new scene to create a new texture, and that didn't work.
I have tried pretty much everything that I can think of, and am still not having any luck. Does anyone have an idea of what I could possibly try to achieve this?
Your answer
