static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
 {
     foreach (string str in importedAssets)
     {
         if (str.EndsWith(".uiss"))
         {
             StylezSheet.ReloadAll();
             return;
         }
     }
 }
        public override void OnImportAsset(AssetImportContext ctx)
        {
            var text  = File.ReadAllText(ctx.assetPath);
            var sheet = StylezSheet.Parse(text);

            if (null == sheet)
            {
                return;
            }

            if (sheet.hasError)
            {
                Debug.LogError($"{ctx.assetPath}({sheet.errorLine}): error: {sheet.error}", sheet);
            }

            ctx.AddObjectToAsset("Sheet", sheet);
            ctx.SetMainObject(sheet);
        }
 /// <summary>
 /// Apply this property to the given component
 /// </summary>
 public void Apply(StylezSheet styleSheet, StylezStyle style, Component component) =>
 thunkApply(this, styleSheet, style, component);