void Awake() { FresviiGUIText.SetUp(Application.systemLanguage); if(instance != null) { Destroy(instance.gameObject); } instance = this; if(FASPlayVideo.videoShareGuiMode == FASPlayVideo.VideoShareGuiMode.WithLegacyGUI) { instance.canvas.renderMode = RenderMode.ScreenSpaceCamera; } else if(FASPlayVideo.videoShareGuiMode == FASPlayVideo.VideoShareGuiMode.WithUGUI) { instance.canvas.renderMode = RenderMode.ScreenSpaceOverlay; } instance.gameObject.transform.SetAsLastSibling(); }
public void Set(FresviiGUIVideoSharing videoSharing, string videoPath) { this.gameObject.SetActive(true); this.videoPath = videoPath; }
public void Set(FresviiGUIVideoSharing videoSharing, Fresvii.AppSteroid.Models.Video video, Texture2D videoThumbnail) { this.gameObject.SetActive(true); this.video = video; this.videoThumbnail = videoThumbnail; }