Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How to keep custom assets during updates?

A topic by Noxlof created May 21, 2024 Views: 110 Replies: 3
Viewing posts 1 to 4

After updating STM to our project our custom animation files got replaced with the plugin default ones (rerolled our git to get them back so I still have them)
Is there a way to keep the files without having to worry about them being replaced? Keeping them in a separate folder doesn't seem to register into the database.

Thanks!
/Lucas

Developer

Hey! Got a few ideas here:

1. Are your custom animation files built on the default ones? Unity keeps track of what files are what with metadata files, so even if you change the included waves, when you update, it'll think that the update's wave is the one you want. If this is the case, you can create a duplicate (ctrl+D) to copy the wave but get new metadata. As long as there isn't a name overlap, that should do it.

2. When importing, uncheck the "Resources" folder.

3. You can create a new directory elsewhere with the name "Resources/STMWaves" and place data in there. All that matters is that it needs to be a folder named "Resources" and then the correct subfolder name for the data type.

At the bottom of the text data inspector, there's a button to gather all data, so you may have to press that to manually gather data that hasn't been created through the inspector. It's also possible that the main settings file is being reset on import, and this button just needs to be pressed, too?

1. Yea I just tweaked the default ones as I just want to write things like <j> instead of <j=myJitter> to minimize text stuffs! Actually, is there a way to mark an asset as the "default" to use? Just assumed that the default one is the one named "default"!

2. I don't think you can do that as "DefaultSTMMaterials" is needed right? I got null party after removing that folder haha. But yes, making sure that each folder is unticked is something to keep in mind!

3. This is what I went with! Works like a charm and feels a bit safer knowing that our files are stored somewhere else :-)

Developer (1 edit)

1. Yep, the default one is always named "default". So the tag for that one can be <j> instead of <j=default> as a shorthand. When re-importing, uncheck "default" to keep your updates to it.

2. Ok oops, that one folder is actually different from the rest, since it just contains the default materials STM uses when a new object is created, not anything related to the tags iirc. What I meant to say was: when *re* importing, leave the resources folder unchecked, so the data in there doesn't override your changes that were made. You can also specifically uncheck different subfolders.

3. Getting a fix is all that matters! Glad you have something that works!