Skip to content

Commit 61193b1

Browse files
author
András Kurai
committed
add more image formats
1 parent 1b3b6d6 commit 61193b1

File tree

2 files changed

+50
-7
lines changed

2 files changed

+50
-7
lines changed

UnityResourceGenerator/Assets/AutSoft.UnityResourceGenerator/Editor/ResourceGeneratorSettings.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,16 @@ public static ResourceGeneratorSettings GetOrCreateSettings
7171
settings._logInfo = logInfo ?? false;
7272
settings._logError = logError ?? true;
7373

74+
// https://docs.unity3d.com/Manual/BuiltInImporters.html
7475
settings._data = new List<ResourceData>
7576
{
7677
new ResourceData("Scenes", new[]{"*.unity"}, false),
7778
new ResourceData("Prefabs", new[]{"*.prefab"}, true),
7879
new ResourceData("Materials", new[]{"*.mat"}, true),
79-
// https://docs.unity3d.com/Manual/AudioFiles.html
80-
new ResourceData("AudioClips", new[]{"*.mp3", "*.ogg", "*.wav", "*.aiff", "*.aif", "*.mod", "*.it", "*.s3m", "*.xm"}, true),
81-
// https://docs.unity3d.com/Manual/ImportingTextures.html
82-
new ResourceData("Sprites", new[]{"*.bmp", "*.exr", "*.gif", "*.hdr", "*.iff", "*.jpg", "*.pict", "*.png", "*.psd", "*.tga", "*.tiff"}, true),
83-
// https://docs.unity3d.com/Manual/class-TextAsset.html
84-
new ResourceData("TextAssets", new[]{"*.txt", "*.html", "*.htm", "*.xml", "*.bytes", "*.json", "*.csv", "*.yaml", "*.fnt"}, true)
80+
new ResourceData("AudioClips", new[]{"*.ogg", "*.aif", "*.aiff", "*.flac", "*.mp3", "*.mod", "*.it", "*.s3m", "*.xm"}, true),
81+
new ResourceData("Sprites", new[]{"*.jpg", "*.jpeg", "*.tif", "*.tiff", "*.tga", "*.gif", "*.png", "*.psd", "*.bmp", "*.iff", "*.pict", "*.pic", "*.pct", "*.exr", "*.hdr"}, true),
82+
new ResourceData("TextAssets", new[]{"*.txt", "*.html", "*.htm", "*.xml", "*.bytes", "*.json", "*.csv", "*.yaml", "*.fnt"}, true),
83+
new ResourceData("Fonts", new[]{"*.ttf", "*.dfont", "*.otf", "*.ttc"}, true)
8584
};
8685

8786
AssetDatabase.CreateAsset(settings, SettingsPath);

UnityResourceGenerator/Assets/ResourceGenerator.asset

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,50 @@ MonoBehaviour:
3232
_isResource: 1
3333
- _className: AudioClips
3434
_fileExtensions:
35-
- '*.wav'
35+
- '*.ogg'
36+
- '*.aif'
37+
- '*.aiff'
38+
- '*.flac'
3639
- '*.mp3'
40+
- '*.mod'
41+
- '*.it'
42+
- '*.s3m'
43+
- '*.xm'
44+
_isResource: 1
45+
- _className: Sprites
46+
_fileExtensions:
47+
- '*.jpg'
48+
- '*.jpeg'
49+
- '*.tif'
50+
- '*.tiff'
51+
- '*.tga'
52+
- '*.gif'
53+
- '*.png'
54+
- '*.psd'
55+
- '*.bmp'
56+
- '*.iff'
57+
- '*.pict'
58+
- '*.pic'
59+
- '*.pct'
60+
- '*.exr'
61+
- '*.hdr'
62+
_isResource: 1
63+
- _className: TextAssets
64+
_fileExtensions:
65+
- '*.txt'
66+
- '*.html'
67+
- '*.htm'
68+
- '*.xml'
69+
- '*.bytes'
70+
- '*.json'
71+
- '*.csv'
72+
- '*.yaml'
73+
- '*.fnt'
74+
_isResource: 1
75+
- _className: Fonts
76+
_fileExtensions:
77+
- '*.ttf'
78+
- '*.dfont'
79+
- '*.otf'
80+
- '*.ttc'
3781
_isResource: 1

0 commit comments

Comments
 (0)