Julen

Hello,

We are having some trouble when using Unity Collab with the Spine Atlas assets,

When downloading an update from the Unity Collab System, some Atlas assets loses the Atlas file (*.atlas.txt) reference, forcing us to reassign them manually.

It isn't a consistent error, sometimes happens, sometimes doesn't.

We are using the default .collabignore file:
# ===========================
# Default Collab Ignore Rules
# ===========================

# OS Generated
# ============
.DS_Store
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
[Tt]humbs.db
[Dd]esktop.ini

# Visual Studio / MonoDevelop generated
# =====================================
[Ee]xported[Oo]bj/
*.userprefs
*.csproj
*.pidb
*.suo
*.sln
*.user
*.unityproj
*.booproj

# Unity generated
# ===============
[Oo]bj/
[Bb]uild
sysinfo.txt
*.stackdump
Unity Version: 2018.1.9f2

Is anyone else having this behaviour too?

Thanks in advance,

Julen.

---

Edit:
This is the error that unity throws when downloading updates from collab:
TargetException: Non-static field requires a target
System.Reflection.MonoField.GetValue (System.Object obj) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
Spine.Unity.Editor.SpineEditorUtilities.IngestSpineAtlas (UnityEngine.TextAsset atlasText) (at Assets/ThirdParty/Spine/spine-unity/Editor/SpineEditorUtilities.cs:1127)
Spine.Unity.Editor.SpineEditorUtilities.ImportSpineContent (System.String[] imported, System.Boolean reimport) (at Assets/ThirdParty/Spine/spine-unity/Editor/SpineEditorUtilities.cs:663)
Spine.Unity.Editor.SpineEditorUtilities.OnPostprocessAllAssets (System.String[] imported, System.String[] deleted, System.String[] moved, System.String[] movedFromAssetPaths) (at Assets/ThirdParty/Spine/spine-unity/Editor/SpineEditorUtilities.cs:625)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets) (at C:/buildslave/unity/build/Editor/Mono/AssetPostprocessor.cs:27)
User avatar
Julen
  • Posts: 30

Pharan

That's very odd.
meta files should be the way assets keep their guids and their serialized connections. Spine assets don't do anything special in that area, so I'm not sure why those would break while other assets don't. The ignore file looks correct and harmless.

I'll see if that error below can be avoided though.
User avatar
Pharan
  • Posts: 5366

LQVKat

Hey Julan, I am having the exact problem, but it happens every time.
I honestly don't know what a .collabignore file is. All I know is that I am having this problem and this is what unity is telling me. "TargetException: Non-static field requires a target
System.Reflection.MonoField.GetValue (System.Object obj) (at <437ba245d8404784b9fbab9b439ac908>:0)
Spine.Unity.Editor.SpineAtlasAssetInspector.GetRegions (Spine.Atlas atlas) (at Assets/Spine/Editor/spine-unity/Editor/Asset Types/SpineAtlasAssetInspector.cs:66)
Spine.Unity.Editor.SpineAtlasAssetInspector.OnInspectorGUI () (at Assets/Spine/Editor/spine-unity/Editor/Asset Types/SpineAtlasAssetInspector.cs:267)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:526)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)"
LQVKat
  • Posts: 1

Harald

The exception text you have posted seems to be a follow-up problem of the missing reference.
LQVKat wrote:I honestly don't know what a .collabignore file is.
When using any version control systems (svn, git, perforce, Unity collab), please familiarize with them, otherwise you will likely end up eccidentally deleting or overwriting files and losing work.
User avatar
Harald

Harri
  • Posts: 2091


Return to Unity