We use the built in P4 integration and it’s been working fine, but I’ve recently started using FMOD and that creates some files for the editor that I don’t won’t to be in source control. Now I can handle this from the P4 Client by using an ignore file (as detailed by FMOD here), but unfortunately whenever this new file is generated Unity marks it as read only - meaning that we get errors when FMOD tries to copy over it.
Any help for getting Unity to respect the ignore file, or excluding folders / files would be great.
Right now Unity P4 integration doesn’t support the .p4ignore file or have the concept of ignored files, excluding folder/files.
Can I suggest you change your p4 workspace settings to either ignore these files or mark them as writable.
The suggestion from FMOD (here) in my opinion is not the right way to handle things in a perforce environment. You should change the workspace settings to ignore/exclue those files.
The p4 workspace settings will let you ignore/exclude file/folders or mark them as writable using pattern matching (wildcards etc)
I just realized this, as Unity kept adding a file to a pending changelist even though it was in my .p4ignore.
So I made the change you suggested @JakeTurner (I had to change the stream ignore settings since our depot is a stream depot), and now I get a ‘file(s) not in client view’ warning every time anything is done with one of the ignore files, which is annoying to say the least. Is there any way to disable those warnings?
I can set the Log level to ‘Fatal’ to stop it showing up, but the fact that this error shows up over and over suggests something’s going wrong so I thought I’d report it.
Well, this issue disqualifies Unity as game engine for professional game development. If we can’t setup Unity for our source control system, how can Unity expect us to use their engine???
Wanted to bump this thread since it’s been a couple years. Any updates on whether Unity supports P4Ignores now or any time soon? I’m on 2019.3.1 and it doesn’t appear to be respecting ignores. Thanks!
Also interested in this topic!
Is it necessary to define same ignores as git or does Unity automatically omit that with P4 integration?
Can i add more?