- Home /
Question by
NichiforArtiom · Apr 03, 2018 at 03:55 PM ·
uivideorecording
How can I record a video during runtime including UI elements?
Hey guys, I'm looking for some help. I have to make a functionality which records UI elements after pressing a special button during runtime and save it as a video at the end of the play mode.
Comment
Answer by YBtheS · Apr 05, 2018 at 09:33 PM
Perhaps you are looking for this: https://assetstore.unity.com/packages/essentials/beta-projects/recorder-94079
If you want to bind it to a button, you need to do this in C#:
//Standard class creation stuffs
void Update() {
if(Input.GetKeyDown("Insert special key here")) {
//Record
}
}
In JS:
function Update() {
if(Input.GetKeyDown("Insert Key Here")) {
//Record
}
}
I have never used Recorder from the asset store but I hope that helps!
Your answer
Follow this Question
Related Questions
How to play a Video IN a UI Button / as a Button? 0 Answers
Camera Recording for Unity 3D 0 Answers
Video Player Render Texture goes black randomly 0 Answers