public override void OnImportAsset(AssetImportContext args)
        {
            logger.BeginImport(args.assetPath);
            VisualTreeAsset vta;
            ImportXml(args.assetPath, out vta);

            args.AddObjectToAsset("tree", vta);
            args.SetMainObject(vta);

            if (!vta.inlineSheet)
                vta.inlineSheet = ScriptableObject.CreateInstance<StyleSheet>();

            args.AddObjectToAsset("inlineStyle", vta.inlineSheet);
        }
        public override void OnImportAsset(AssetImportContext args)
        {
            logger.BeginImport(args.assetPath);
            VisualTreeAsset vta;

            ImportXml(args.assetPath, out vta);

            args.AddObjectToAsset("tree", vta);
            args.SetMainObject(vta);

            if (!vta.inlineSheet)
            {
                vta.inlineSheet = ScriptableObject.CreateInstance <StyleSheet>();
            }

            // Make sure imported objects aren't editable in the Inspector
            vta.hideFlags             = HideFlags.NotEditable;
            vta.inlineSheet.hideFlags = HideFlags.NotEditable;

            args.AddObjectToAsset("inlineStyle", vta.inlineSheet);
        }