Hugula.Editor.HugulaSettingEditor.GetLabelsByPath C# (CSharp) Method

GetLabelsByPath() public static method

public static GetLabelsByPath ( string abPath ) : string
abPath string
return string
        public static string GetLabelsByPath(string abPath)
        {
            string folder = null;
            var allLabels = instance.AssetLabels;

            foreach (var labelPath in allLabels)
            {
            if (abPath.StartsWith(labelPath+"/"))
            {
                folder = CUtils.GetAssetName(labelPath).ToLower();
            }
            }
            return folder;
        }

Usage Example

Example #1
0
 static public string GetLabelsByPath(string abPath)
 {
     return(HugulaSettingEditor.GetLabelsByPath(abPath));
 }