public static void Save(string guid, EnumMacro target, string code) { var path = AssetDatabase.GUIDToAssetPath(guid); var finalPath = path.Remove(path.LastIndexOf("/") + 1, path.Length - path.LastIndexOf("/") - 1); code.Save().Custom(finalPath, target.title + ".cs").Text(); }
public override void Initialize() { Images.Cache(); _target = metadata.value as EnumMacro; generator = EnumMacroGenerator.GetDecorator(_target); }