|
Just wondering if this is an "o.k" thing to do and will not mess with the Unity project? Are there any issues with doing this? I wanted to use it to store per-project default settings for an AssetPostprocessor class I'm making. i.e:
(comments are locked)
|
|
AssetDatabase.CreateAsset only takes a relative path and it's always inside the asset folder. You can't use a full path. All Unity-stuff that belongs to your project have to be placed inside the asset folder. If you don't want to include an asset into your build, just place it in an "editor" folder. If you just want to store some settings you still can use plain .NET / Mono functions to write an xml file or something like that. This one you can place where ever you want, but your should leave the library folder alone. There's no reason to place anything in there. You can create a seperate folder for your stuff ("config" or something like that). But again all assets that are under control of Unity have to be placed inside the assets folder Thanks! this is pretty much the conclusion that I came to eventually. :) Good to be reminded of 'Editor' folders also excluding items from the build. Cheers!
Oct 03 '11 at 07:37 PM
DanKripac
(comments are locked)
|

O.k so I've now tried my own code out (as I should have done before hand) and Unity prints an error and throws an Exception using the /Library path i.e: Couldn't create asset file! UnityException: Creating asset at path /path/to/game/Library/DefaultTextureAtlasImportSettings.asset failed.
I guess this means no then right?