# FMOD Studio and source control

**URL:** <https://qa.fmod.com/t/fmod-studio-and-source-control/17906>\
**Category:** FMOD Studio\
**Tags:** unity\
**Created:** [November 4, 2021, 8:49pm UTC](https://qa.fmod.com/t/fmod-studio-and-source-control/17906 "2021-11-04T20:49:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LenneR](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@LenneR](https://qa.fmod.com/u/LenneR)\
**Post date:** [November 4, 2021, 8:49pm UTC](https://qa.fmod.com/t/fmod-studio-and-source-control/17906/1 "2021-11-04T20:49:50Z")

</div>

Hi there,

I’m struggling with finding a good workflow to use FMOD together with source control. For our previous project we have been using git and I soon ran into the problem that there was no way to properly gitignore a folder in FMOD studio. It works fine for the audio files themselves, but if there are some meta files generated they are not placed next to the audio files. This makes it extremely difficult to exclude unused or “local” files from source control completely.

In Unity we have a _Local_ folder which is placed in gitignore and everyone can drop some local tools and such in there without having to deal with metas because Unity places them next to the original files with the .meta extension.

To have a similar workflow in FMOD I have done some scripting in and out of FMOD. This is my .gitignore in the root of the FMOD project:

```auto
.*/
[Bb]uild/
/Assets/Local Audio Files
/Metadata/AudioFile/**
/Metadata/Asset/**
/Metadata/DataFile/**

```

So as you can see I ignore all audio in my _Local_ folder. Same goes for all (for me) relevant meta files. Now when I make a build I run a script that looks at all the audio files I use. If they are in the _Local_ folder I move them to a _Used_ folder so they get recognized by git.

Then after the build I run a second script that loops over all meta files and checks if the _Used_ folder can be found in the file. If so, I add the meta file to another gitignore that unignores that specific meta file. This way, all actually used meta files get into git and the unused ones do not.

This actually works pretty decently, even if it’s not the prettiest solution. But now for a new project, we are moving to PlasticSCM for a large number of reasons. PlasticSCM mostly works the same way when it comes to ignoring and unignoring files and folders, except for one thing. They only allow a single _ignore.conf_ file (their version of _.gitignore_). This will force me to append all the meta files to unignore to this single file and, preferably, I don’t want to get that messy.

My preferred solution would be to be able to freely move the meta files outside of their regular folder. Or at least allow nesting so I can move all meta files I actually use to _ **FMOD/Metadata/Asset/Used/** _ for example so I can unignore that specific folder.

But I am always open to other suggestions.

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [November 10, 2021, 12:56am UTC](https://qa.fmod.com/t/fmod-studio-and-source-control/17906/2 "2021-11-10T00:56:42Z")

</div>

Am I right in my understanding that you want to include/exclude certain objects (assets, events, etc) from the FMOD Studio project in the source control? It currently isn’t possible if you are using the Unity source control solution. The best I could advise is to look into the source control documentation and check out the Unity master gitignore file.

[https://www.fmod.com/resources/documentation-unity?version=2.02&page=user-guide.html#using-source-control](https://www.fmod.com/resources/documentation-unity?version=2.02&page=user-guide.html#using-source-control)
