Skip to content

Commit edb36a9

Browse files
committed
Change importer variable names to make labels feel more natural
1 parent cf460e6 commit edb36a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Editor/SqliteAssetCsvImporter.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ public class SqliteAssetCsvImporter : ScriptedImporter
3030

3131
[Header("CSV options")]
3232
[Tooltip("Which separator character will be used when parsing the CSV file.")]
33-
[SerializeField] private CsvReader.SeparatorChar _csvSeparator = CsvReader.SeparatorChar.Comma;
33+
[SerializeField] private CsvReader.SeparatorChar _CSVSeparator = CsvReader.SeparatorChar.Comma;
3434

3535
[Tooltip("If true, the original CSV file will also be imported as a TextAsset")]
36-
[SerializeField] private bool _importCsvTextAsset = false;
36+
[SerializeField] private bool _importCSVTextAsset = false;
3737

3838
[Header("Additional SQL")]
3939
[Tooltip("SQL script that will be run before reading CSV data. Use this for configuring the generated database using PRAGMAs like 'page_size'.")]
@@ -53,7 +53,7 @@ public override void OnImportAsset(AssetImportContext ctx)
5353
{
5454
tempDb.Execute(_SQLBeforeReadingCSV);
5555
}
56-
tempDb.ImportCsvToTable(_tableName, stream, _csvSeparator);
56+
tempDb.ImportCsvToTable(_tableName, stream, _CSVSeparator);
5757
if (!string.IsNullOrWhiteSpace(_SQLAfterReadingCSV))
5858
{
5959
tempDb.Execute(_SQLAfterReadingCSV);
@@ -64,7 +64,7 @@ public override void OnImportAsset(AssetImportContext ctx)
6464
ctx.AddObjectToAsset("sqlite", asset);
6565
ctx.SetMainObject(asset);
6666

67-
if (_importCsvTextAsset)
67+
if (_importCSVTextAsset)
6868
{
6969
var textAsset = new TextAsset(File.ReadAllText(assetPath))
7070
{

0 commit comments

Comments
 (0)