Hello everyone,
I've installed Unity Technology Recorder.
How can i start & stop record in c# ?
here's my script :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Recorder;
using UnityEngine.Recorder.Input;
using UnityEngine.UI;
public class PlayerRecorder : MonoBehaviour {
public static PlayerRecorder playerrecord;
// public Text recordText;
Recorder rec;
void Awake()
{
playerrecord = this;
gameObject.transform.SetParent(null, false);
DontDestroyOnLoad(gameObject);
}
void Update()
{
if (Input.GetKeyDown("page down"))
{
print("Record In Progres");
}
if (Input.GetKeyDown("page up"))
{
print("Record finished");
}
}
}