playMaker

Author Topic: EditorStartupPrefs checkout in git  (Read 1045 times)

aberlemont

  • Playmaker Newbie
  • *
  • Posts: 3
EditorStartupPrefs checkout in git
« on: May 05, 2023, 07:19:19 AM »
Hello,

EditorStartupPrefs seems to store some path relative to the user's computer.

I'm currently working on a project with multiple team members.

And everytime we need to discard changes on that file before commiting.

I tried to "ignore" the file but the absence of the file create a tons of error for every person interacting with the git project.

Any best practice I'm missing ?

Thanks for the help !

-Ab

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: EditorStartupPrefs checkout in git
« Reply #1 on: May 05, 2023, 12:03:45 PM »
Hi.
We had the same issue, we solved it by storing it on the same file path on all computers

you should be able to use gitignore but some settings should be pushed/pulled and could give issues if you forget to disable the ignore on it

aberlemont

  • Playmaker Newbie
  • *
  • Posts: 3
Re: EditorStartupPrefs checkout in git
« Reply #2 on: May 08, 2023, 11:19:39 AM »
Thanks for the answer :)

Same path for all : not possible in my context I'm afraid

Not sure I understood what you meant by "soime settings should be pushed/pulled" or "disable the ignore on it" ?

I tried to ignore that file but playmaker REALLY doesn't like it.

I'm guessing from your answer that the way to go would be to have everybody generating that file and then ignoring it.

But it's really not practicle for when new user comes in. There has to be a better way xD.

Why not storing a relative path in that file ? like using Application.dataPath ( https://docs.unity3d.com/ScriptReference/Application-dataPath.html ) instead ?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: EditorStartupPrefs checkout in git
« Reply #3 on: May 09, 2023, 07:25:36 AM »
Hi.
Oh I always thought it was a unity thing.
I will contact Alex if this can be changed.

i think it should be possible to do something like :

lastAutoUpdateSignature: 2019.4.40f1__**Assets__0.0.0.0

and replace the ** with the local path in code

aberlemont

  • Playmaker Newbie
  • *
  • Posts: 3
Re: EditorStartupPrefs checkout in git
« Reply #4 on: October 06, 2023, 10:42:47 AM »
Hey djaydino,

I'm not quite sure what you want me to do in your last post ?
local path ? Did you mean relative path ?

to have a proper context here is the path written in the EditorStartupPrefs.asset on my machine :

lastAutoUpdateSignature: 2022.3.8f1__D:/dev/game/Assets__0.0.0.0

but to some other team member it's :

lastAutoUpdateSignature: 2022.3.8f1__F:/work/clients/unity/Assets__0.0.0.0

My intuition would be that this path should be relative to the Assets of the current opened project (instead of relative to the drive) :

lastAutoUpdateSignature: 2022.3.8f1__Assets__0.0.0.0

( I waited a bit for new update before bumping that topic just in case something changed :) )

Thanks for the help :)
« Last Edit: October 09, 2023, 04:08:09 AM by aberlemont »