Creating video from RenderTexture?

Hey guys!

I started kicking around an interesting mechanic today and was wondering if anyone could point me in the right direction.

Basically my scene has a few cameras, and I am wondering if there is a way to capture what camera B is seeing or its render texture, then spit that into a video file? That won’t be too taxing and I would be able to do this multiple times during game play sessions.

I found a few threads asking about doing something similar creating still images then adding them frame by frame to an animation and doing it that way.

Not really sure how to go about that approach and was wondering if anyone here could point me in the right direction to accomplishing this!

Thanks so much!

I know that there is iOS functionality to do this but not sure about other platforms. You might be best using something like Everyplay as it records using the camera hardware and doesn’t slow down your game. I’m pretty sure you can set it to record from a particular camera too. (https://www.assetstore.unity3d.com/en/#!/content/16005)

Thanks for your reply! But I was actually looking to record what an in game camera sees then play it back in game!

I found a solution that works! Basically I create a new list and fill it with camera pos/rotation while recording is true. Then to replay I just step through the list and assign the cameras pos/rot to each list element!

Super simple and works perfectly!!! No need for video/saving and all that other potentially heavy running stuff!

EDIT: Nevermind… this only saves and replays the cameras coordinates… it doesn’t actually save what the camera was seeing. :frowning: Back to the drawing board!!

Hi @unitynoob24 were you able to figure this out? I am working on the same problem