Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using VoxelBusters.ReplayKit;
- public class StartStopRecording : MonoBehaviour
- {
- void Start ()
- {
- if(ReplayKitManager.IsRecordingAPIAvailable())
- ReplayKitManager.Initialise();
- else
- Debug.LogError("Recording API not available!");
- }
- public void StartStopRec()
- {
- if (ReplayKitManager.Initialise() == false)
- {
- ReplayKitManager.StartRecording(true);
- }
- else if (ReplayKitManager.Initialise() == true)
- {
- ReplayKitManager.StopRecording();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement