Demigiant / dotween

A Unity C# animation engine. HOTween v2
http://dotween.demigiant.com
Other
2.35k stars 351 forks source link

DOTweenSettings.asset file changes on every new machine #376

Open NudeNULL opened 4 years ago

NudeNULL commented 4 years ago

Every time I open a project that contains DOTween asset on other PC Github Desktop is showing that DOTweenSettings.asset file was changed even if the file was already created on first PC where the project was created. This is a problem because it can cause conflicts when working on multiple branches for example. Why this file keeps updating when I open the project on another PC??

Demigiant commented 4 years ago

Ahoy! This is weird and definitely shouldn't happen. Unless it's just some meta ID which would depend on platform and Unity version. Are you sure the actual settings change? Also, can you tell me on which Unity version are you?

NudeNULL commented 4 years ago

Ahooooy)

We are working on the same version of Unity on one 1 project at a time, Unity 2019.2.20

Github is showing nothing was changed, this is strange, because we don't have such behaviour with any other files (scriptable objects and so on).

To reproduce this problem just:

  1. Create a new repository using Github Desktop on windows machine
  2. Create a new project in Unity 2019.2.20 in this repository
  3. Set up the dotween asset, indicate that the location of dotween settings is in Demigiant folder but not in assets folder
  4. Update the gitignore text file to the value attached at the bottom of the message
  5. Commint the project
  6. Clone the repository on other windows machine
  7. Open project, make some changes, save them
  8. Open Github Desktop and you should see that the settings file was changed ::::(

Gitignore file contents:

# Unity generated and a few customs #
# ================================= #
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uilds/
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Bb]uilds/
/[Ll]ogs/
[Jj]etBrains/
/[Mm]emoryCaptures/
WebBuild/*
WindowsBuild/*

# Autogenerated Jetbrains Rider plugin
[Aa]ssets/Plugins/Editor/JetBrains*

# Never ignore Asset meta data
!/[Aa]ssets/**/*.meta

# Visual Studio cache directory
.vs/

# Gradle cache directory
.gradle/

# Uncomment this line if you wish to ignore the asset store tools plugin
/[Aa]ssets/AssetStoreTools*

# ===================================== #
# Visual Studio / MonoDevelop generated #
# ===================================== #
ExportedObj/*
.consulo/
*.svd
*.userprefs
*.csproj
*.pidb
*.suo
*.sln
*.user
*.unityproj
*.opendb
*.VC.db
*.booproj
*.log
*.pdb
*.mdb
*.tmp
*.idea

# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta

# Ignore UnityVS so users can use different versions
Assets/UnityVS/*

# Unity3D Generated File On Crash Reports
sysinfo.txt

# Builds
*.apk
*.dwlt
NudeNULL commented 4 years ago

Hey Demigiant, any news on this issue? Did you try to fix it? It drives crazy our art department because every time they have to commit some files using git they have to uncheck the Dotween settings file in order to no create any conflicts.

emaadgh commented 2 years ago

Hi, any updates on this? We still have this issue on version 1.2.632. Thanks.

diegyoho commented 5 months ago

Hello everyone! I've encountered the same issue. After switching branches, I noticed that this file shows up as modified even though I haven't made any changes. It seems the file was originally committed with CRLF line endings, but now the Editor automatically changes it to LF when I save the project (File -> Save Project).

This warning also pops up when attempting to view the diff through git:

warning: in the working copy of 'Assets/Plugins/Demigiant/DOTween/Resources/DOTweenSettings.asset', LF will be replaced by CRLF the next time Git touches it