public override string SetLabel() { if (movieClipType == MovieClipType.VideoPlayer) { #if UNITY_5_6_OR_NEWER && !UNITY_SWITCH string labelAdd = movieMaterialMethod.ToString(); if (videoPlayer != null) { labelAdd += " " + videoPlayer.name.ToString(); } return(labelAdd); #else return(string.Empty); #endif } #if (UNITY_IOS || UNITY_ANDROID || UNITY_WP8 || UNITY_TVOS) if (!string.IsNullOrEmpty(filePath)) { return(filePath); } #elif UNITY_STANDALONE && (UNITY_5 || UNITY_2017_1_OR_NEWER || UNITY_PRO_LICENSE) && !UNITY_2017_2_OR_NEWER if (movieClip != null) { return(movieClip.name); } #endif return(string.Empty); }
public override string SetLabel() { if (movieClipType == MovieClipType.VideoPlayer) { #if ALLOW_VIDEOPLAYER string labelAdd = " (" + movieMaterialMethod.ToString(); if (videoPlayer != null) { labelAdd += " " + videoPlayer.name.ToString(); } labelAdd += ")"; return(labelAdd); #else return(""); #endif } #if ALLOW_HANDHELD if (filePath != "") { return(" (" + filePath + ")"); } #elif ALLOW_MOVIETEXTURES if (movieClip) { return(" (" + movieClip.name + ")"); } #endif return(""); }
public override string SetLabel() { if (movieClipType == MovieClipType.VideoPlayer) { #if UNITY_5_6_OR_NEWER string labelAdd = " (" + movieMaterialMethod.ToString(); if (videoPlayer != null) { labelAdd += " " + videoPlayer.name.ToString(); } labelAdd += ")"; return(labelAdd); #else return(""); #endif } #if (UNITY_IOS || UNITY_ANDROID || UNITY_WP8 || UNITY_TVOS) if (filePath != "") { return(" (" + filePath + ")"); } #elif UNITY_STANDALONE && (UNITY_5 || UNITY_2017_1_OR_NEWER || UNITY_PRO_LICENSE) && !UNITY_2017_2_OR_NEWER if (movieClip) { return(" (" + movieClip.name + ")"); } #endif return(""); }
public override string SetLabel() { if (movieClipType == MovieClipType.VideoPlayer) { #if ALLOW_VIDEO string labelAdd = movieMaterialMethod.ToString(); if (videoPlayer != null) { labelAdd += " " + videoPlayer.name.ToString(); } return(labelAdd); #else return(string.Empty); #endif } #if (UNITY_IOS || UNITY_ANDROID || UNITY_WP8 || UNITY_TVOS) if (!string.IsNullOrEmpty(filePath)) { return(filePath); } #endif return(string.Empty); }