public void Clear() { _ClipData = null; _ClipButtonImage.texture = null; _ClipButton.GetComponent <Image>().color = Color.white; _ClipButtonText.enabled = true; _State = ClipPadState.Empty; }
private void OnLoadSuccess(string filePath) { System.IO.FileInfo fileInfo = new System.IO.FileInfo(filePath); PlayerPrefs.SetString("LastVideoPath", fileInfo.Directory.FullName); _ClipData = new ProjectClip(); _ClipData._VideoPath = filePath; _Manager.GetClipPreview(filePath, this); }
public void LoadFromClipData(ProjectClip clipData) { _ClipData = clipData; _State = ClipPadState.Loaded; RefreshUI(); }