void Awake() { Subscribe(true); readyForRecording = Everyplay.IsReadyForRecording(); #if EVERYPLAY_NATIVE_PLUGIN if (readyForRecording) { renderEventPtr = EveryplayGetUnityRenderEventPtr(); } isMetalDevice = SystemInfo.graphicsDeviceVersion.Contains("Metal") && !SystemInfo.graphicsDeviceVersion.Contains("OpenGL"); isAndroidDevice = Application.platform == RuntimePlatform.Android; #endif }
void Awake() { Debug.Log("Everyplay HUD-less functionality is no longer maintained and may not function properly."); Subscribe(true); readyForRecording = Everyplay.IsReadyForRecording(); #if EVERYPLAY_NATIVE_PLUGIN if (readyForRecording) { renderEventPtr = EveryplayGetUnityRenderEventPtr(); } isMetalDevice = SystemInfo.graphicsDeviceVersion.Contains("Metal") && !SystemInfo.graphicsDeviceVersion.Contains("OpenGL"); isAndroidDevice = Application.platform == RuntimePlatform.Android; #endif }
public void Record() { if (!Everyplay.IsReadyForRecording()) { return; } //Button [0].gameObject.SetActive (false); Button [1].gameObject.SetActive(true); if (!Everyplay.IsRecording()) { Everyplay.StartRecording(); isRecording = true; } }
/// <summary> /// Starts recording gameplay videos, if recording is supported for this device /// (determined by Everyplay) and the user enabled screen recording in the game settings. /// </summary> public static void StartRecord() { #if UNITY_EVERYPLAY //don't record with recording turned off if (!bool.Parse(PlayerPrefs.GetString(PrefsKeys.recordGame))) { return; } //start recording if supported and ready if (Everyplay.IsRecordingSupported() && Everyplay.IsReadyForRecording()) { Everyplay.StartRecording(); } #endif }
public void OnRecordButtonClick() { if (!Everyplay.IsRecordingSupported()) { messager.SetMessege("Запись видео не поддерживается вашим устройством"); } else if (!Everyplay.IsReadyForRecording()) { messager.SetMessege("Необходимо разовое подключение к интернету"); } else { animator.SetBool(isRecordingParamId, !animator.GetBool(isRecordingParamId)); photoBtn.interactable = !photoBtn.interactable; switchCamBtn.interactable = !switchCamBtn.interactable; videoRecorder.ToggleRecord(); } }
// // video record control // public void StartRecord() { if (!Everyplay.IsRecordingSupported()) { logger += "Video recording is not supported"; } else if (!Everyplay.IsReadyForRecording()) { logger += "Device is not ready for record"; } else { if (PreRecordStarted != null) { PreRecordStarted(); } Utils.Inst.Shedule(() => Everyplay.StartRecording(), delayBeforeRecordStarted); } }
//Change everyplay to suit current game settings. private void CheckEveryplay() { if (Everyplay.IsSupported()) { if (PlayerDataManager.s_Instance.everyplayEnabled) { //If everyplay is enabled and not recording, set it going. if (!Everyplay.IsRecording() && Everyplay.IsReadyForRecording()) { Everyplay.StartRecording(); } } else { //If everyplay has been disabled and it's still recording, stop it. if (Everyplay.IsRecording()) { Everyplay.StopRecording(); } } } }