2 steps backwards

Yeah, what Praetor said is it… Debug.Log is your friend, and also since this is animation related, you can open up the Animator window when you expect the animations to go, and actually visually see where the state machine is, see which state it thinks it is in. You can combine this with Debug.Log() output at the locations where you set the animations to be what you think they should be, and that should lead you to some intel.

I highly recommend setting up git source control. It really plays nicely with Unity and there are tons of tutorials out there on setting it up. Once you do that it’s like a “savegame system” for development. You choose precisely when to make saves, and you can annotate those saves meaningfully, such as “before starting money panel.”

Each commit becomes something where you can compare the differences (in files) from previous to next. For me I like to use source control EXTREMELY frequently, and will make stepwise commits, such as:

  • created blank pane for money panel
  • connected money panel into main scene script
  • created logic to display money in money panel, etc.

Each commit becomes a point that you can trivially teleport back to in time, and make sure something that suddenly stopped working actually was working when you think it was.

I am in the process of converting Jetpack Kurt to run on Android TV. So far it is well over 100 small babysteps towards it, and it is just about done actually.

But with git, at each point in the work process, I can instantly teleport back to it (git is really fast!) and confirm something, revert something, study what went wrong, reason about it, etc. I almost can’t work WITHOUT source control anymore.

Here’s an example of about 30 minutes of work from a few days ago. Each line represents the commit message that I typed free-form when I made the commit, basically comments to myself should I ever have a problem, and I frequently do. I am only human.

These commits list from newest going back in time, so new ones happen at the top. All commits are always kept, every possible saved condition you ever snapshotted with a commit, going back to day 1 on the project.

You can see I was having issues with the input axes getting confused. You can also see me making simple “notes” commit, sometimes to one of my internal “notes.txt” files, or else directly into the code.

git can instantly show me the edits I made to a file… this is the edits for the “am I going insane?” commit for the axis reversal listed above:

You can instantly see how I inverted the axis from + to - and committed the change permanently into history. Red is removed a line, green is added a line, or in this case it is clearly just changes to pairs of lines.

Now if I ever have a question about it, or switch it back, git is tracking an entire history of ALL the changes to every line of every piece of code.

It is unbelievably useful and comforting. And all of my changes are pushed regularly to other computers I own, as well as up to the cloud via bitbucket, github and gitlab private repositories.

If you are super-nerdy, you can also ask git to tell you how many commits you have made. Here is the full count of commits to my Jetpack Kurt game, which I started back on March 18, 2013:

4923```

Update from June 28, 2021: Jetpack Kurt has been under a lot of development in the past year! It's now at:

```kurtina:jetpack kurt$ git rev-list --count HEAD
5782```
5 Likes
Same Project, Same Version, Two different computers = Errors
A little story about using backup project folder
Unity ruined my last 48 hours Part-2 Cruel Library
[Suggestion] - Upgrade Version Control Icons With Higher Resolution
Unity Project problems, running same project on second PC
Gray Screen on Build
Unity doesn't have a backup solution, be careful you should have your own!
Code isn't working anymore
Collab won't let me add a third seat
very weird error
Unity Version Control - switch workspace
Unity crashed and now my project is having problems.
Issues with Terrain Asset files and general git issues.
Removing assembly definitions from project
Just lost 4 hours of grueling revamping because this crash-prone engine doesn't have Auto SAVE.
How to get rid of grey box??
My player is not moving at all
what is wrong with my PlasticSCM????
TextMesh Pro completely broken after compressing project as unity package — Unity 6
Transfer old 2D project from laptop to new PC (without USB stick)
Can't Make Character Move Up Smoothly While Following Path
Moving from Unity 2020.3.3f1 to 2021.3.11f1 Android build problems.
Unity is not opening my project
Unity duplicates assets back to root folder again after moving them
Collab bug
Cannot open Android project and cannot switch other projects to Android Build.
The name 'Mouse' does not exist in the current context
My game lit itself, can't figure out what happened.
I can't find the collab button
Unitty exe to files
Unity highly unstable/unusable on macOS
Project transfer
Unity projects bigger on external SSD
Project behaving strangely after having pulled from github
How to deactive unused scripts without having to delete them?
Splitting up a terrain object into different regions
Place an array of non-tile, square 2D sprites in a flush grid to set up game
Everything... broken...
How to fix a scene that was migrated from Mac to PC?
Failure while building - have built project dozens of times and haven't changed settings
PC soft locked, now my build has reverted to an earlier state.
AddForce() suddenly stopped working
Project broken after moving it to a new pc
i don't have the collab button.
Can't open scene after downgrading unity version
How to resolve The type or namespace name 'bool3x3' could not be found error
Project crashing on startup
Work on one project across multiple systems?
How to share source code
Build broke my scene? HELP APPRECIATED
Unity Android App back to the Projekt
how to use cloud.unity
Error - These items are exclusively checkd out by: MYSELF 2
Is it possible to use these files?
My unity game in editor is deleted, but the files are located in there
Connect to the server (Plastic SCM) page keeps coming out
Need Objects to destroy
How to add my project to github ? Can't find Version Control > Visible Meta Files
Working between both of my PCs.
Pls help me pink terrain is driving me crazy
Releasing my first game! Proper release workflow?
AppController.mm not found
Importing an existing unity project into github, how do I do it?
How To Properly Backup Unity Engine Project(Not Using Git)?
Reverse engineering Unity game from .exe file and _Data folder
2019.4.28 crashes on Mac OS Big Sur on Start-up (Stack-trace included) - InitializeAssetDatabaseV2?
Track Changes stopped working on my Unity project in Visual Studio 2022
Working with several people on one project
Compile errors, but no errors reported, nor in editor
Why is there no download button?
Issue with my ProBuilder Mesh
new to JSON - one line in JSON = one object?
Sprite Atlas, Stack over flow
Came back to project after 3 weeks break, have 280 HDRP errors
Multiple precompiled assemblies?
Upgrading an old project from Unity 5.x to Unity 202x ?
Blue plus with my prefab icon
renaming scenes
Uninstalling an old version of unity removed projects
Prefab changes not loading from Git Pull
Corrupted File Removed From Collab History: Lesson Learned
Corrupted / Missing Unity Files on Project Update and Creation
Self destruction
Phantom Error
Light settings bug in HDRP
On Editor update: Build settings -> Texture compression gets reseted on the first import
Game Window Gone Black on Play
Need help with abandoned Asset. No support. Need help Building DLL from Source.
Scene broken after PC Shut down
Need advice on setting up a new git
DontDestroyOnLoad - Prefabs Data Persistence
[BUG] Plastic SCM Deleting Addressables & Removing Files.
Spinner Physics Issue
UNITY JUST WRECKED MY PROJECT?!?!?!
How to delete historical uploads in a collab project
My project is hosed
Removed project from list, With no backup.
hey i cant seem to transfer my unity file
Upgrading to new Unity too often breaks projects
New computer transfer issues
back to older version and then got errors
Unity not saving scenes or project. Lost everything twice.
The type or namespace name could not be found
Which version control for small Unity projects?
Help with unity.
New Folders are private.
Lost keystore. Unable to upload app with new keystore. Help Needed !!
Plastic Cloud Not Loading?
List obsolete APIs without updating?
huge project size because of library folder
How do you have multiple people working on the same game?
When opening a script from the editor in visual studio should I recover or not the file ?
Project Isn't Working 100% After Deleting Library Folder
Unity Closing When I Open A Project
"The script is an editor script" error when script is not an editor script
Would there be any problems repeatedly changing a project from Windows to Mac and vice versa?
Plastic scm offline?
How can I save and load progress bar?
Best way to store fixed game configuration data
PlasticSCM group work not showing
Plastic SCM Error "the remote host closed the socket."
Where will Scripting Define Symbols be saved?
After the last update I can't build the game
In Collaborate, can we diff check files?
Download unity 4.6.5f1
Manually upgrade to C# 8
How can use SourceTree as local
Cannot Use Same Unity Project Between Desktop & Laptop
Editor not opening project! I cannot lose this project!
Renaming Scripts in 2023.1.6f1
importing unity made asset messed up rigidbodies.
Problems with Unity Builds on Mac and Google Drive / Dropbox
My Scripting Define Symbols are gone, how to regenerate them?
Build fails when project is copied to a different directory or computer and compiled
Unity Cinemachine Stopped Working; Doesn't look at the Look At Target
Unable to restore to last job I saved in cloud scm
Unable to open/view remote project from a different organisation in Unity Hub
I lost all of my scene assets, after scene reload.
Prefab lost all assignments
Unity Editor crashes when loading scene
Complicated Error After Installing Assets!
PSB issue: How to export Sprites from Unity (and update Sprite-References) ?
Collaborate service giving error.
Gradle build failed
999+ errors, all of them are my scripts that got messed up.
How to preserve id in dll of package imported from git?
Could not find a part of the path
Is there simple trick to revert temporary changes
Lost my work
Deleted a unity version control repository and can't change a unity project to the new repository
Unity 2019.4.23f1 Broke Prefabs and Project - NullReferenceException, ArgumentNullException
Scene Management for platformer/metroidvania style game
How to clean up project files to reduce size before backup?
Which Android build folders can be omitted from a Project Backup?
Some gameObject lost!
Hdd Died is it possible to salvage anything from a apk build file?
Need help fixing build issues after update from 2021->2022
Opening remote project with plastic scm opens an empty project
Script compiles but the MonoBehaviour class isn't detected until reimported
i accedently deleted the gamemanager script
Collaboration not working
Should the fields of a 2D RPG be divided into scenes?
Hundreds of "New Game Object" in scene...
Lost my project due to collab "restore"
How can I retrieve a scene I was working on if it is not among the assets?
I'm in shaded mode, but it only shows me black and white spots
How do I update used assets in a large project?
Is it possible for project file corruptions to propagate through revisions without detection?
Error importing texture after upgrading to Unity 2023.1.2f1
unity collab delete my project
Unity CS2012: Cannot open 'Assembly-CSharp.dll' for writing
Game doesn't run
Unity destroyed the content of one of my project's folder ?
Can't open project on 2 PC's at the same time on network drive?
Unity Engine Treats warnnings as Errors
Recovering Lost Unity Projects Using Unity Dashboard?
Editting multiple prefabs in editor via script
UI disortion after project update
Unity is now at 70 minutes to load, about 25% of the way done
What folders should I backup
Is it right to delete all "Unity" folders after testing an asset store asset to restore to default?
Cant figure out how to collab on a Unity project. (please help)
Unity Crashing on opening a specific scene .
Unity gets stuck while building 64-bit version for the Play Store
the associated script can not be loaded
Unity.Plastic SCM.Editor.Plastic Plugin error
i want to save my project from build
How to save everything? I can't reliably save things.
Best solution for collaborating with multiple team members
Painless conversion from MonoBehaviour to ScriptableObject?
I am trying to open a remote project using PlasticSCM, but I get a error
Unity 2019.4.29f1 has blank collab history window
The referenced script (Unknown) on this Behaviour is missing!
How to delete Unity Plastic SCM cloud repositories?
Scenes no longer show up in the indexed search window
How often should you back up your project
Updating to 2020.2.4f1 messed up all my prefabs!
How to duplicate 2D projects
I want to continue my work on my game on my iMac
Can't upload to Google Play due to non compliant SDK com.unity3d.ads:unity-ads
How can I work on a project with other people?
WebGL build size optimization
My PSD importer stopped working?
Unity foot folder will not copy/paste for a backup
Backup broke my game- Anyone see a fix?
Need help (Beginner)
Build game screne goes black
Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings
BuildAssetBundleExplicitAssetNames error: Moving file failed
Upgraded project from 2020 Unity to 2021 Unity and now nothing works.
moving from plastic scm to version control
Unity Stuck On ProjectBrowser.Repaint After Opening Without Internet Connection Using PlasticSCM
Can't commit Unity because of large file
What happens with serialization when unity restarts?
2 Compile Errors appeared that I cant understand how to solve appeared randomly
Unity + Plastic + Odd Situation help
If I share a Unity project on Github, will it work on a new Unity installation without prior setup?
when I load specific scene I get editor crash
Updated editor, now project is all messed up
Build Failure org.xml.sax.SAXParseException
What version of Unity should I be using? What version of Android? I need to remove Unity splash screen
Id like to restructure my entire project, how to?
Scripts missing after refactoring name in many locations -- how to fix?
Everything gone in scene
Creating new Namespace within C#, not sure why
Is there any way to build only the modified parts each time, as a separate SO library for updates?
Error message when new project is started. Clews?
Minigame 'spawn'
Project Artifact Has No .META File
Scripting define symbols empty
Issues with Unity Version Control
Collaboration error
How to keep same HTML and CSS file between different builds
Creating a grid system in a 3D world
Can I open a previously saved version
All gone
What is Recovery GameObject
PasticSCM randomly injecting code into my project and other errors during Build - 2022.3.1
Blitter is already initilaized exception after installing HDRP on older project, upgraded to 2022.3
Unity Version Control don't work
Latest Updates Made Game Unplayable
I need a hassle free "time machine" style backup for my ongoing developing projects
Unity and Git/GitHub not playing nice
Slow Loading Time - Scene Loading Async
Unity Error CS0246 NuGet Package MQTT not found, despite installed with no Visual Studio Errors
How do I go back to past edits without collab feature?
redownload from play.unity.com
My progress on new project is gone, is it my fault?
Error Build
On - line editor
Game texts: How do you manage yours?
About projects backup, team workflow and github
6.2 Beta fails to roll back test framework version
Move Project to M2 Mac, how?
Collaborate sync problems - "Recovery gameobject" [SOLVED]
Having projects on cloud and accessing them using different computers?
All my mesh folder content is gone
Transfer scene from one project to another
Is there any way to create a script from an editor window?
Version Control Error
Bird flying backwards in Angry Birds Like Game Tutorial (Terrible Tweeters YouTube Tutorial)
Exclude scripts from build
What's wrong with UI Toolkit?
Unknow error occurred while loading scene
Partnership working?
Error message in version control
Cracking lines in the tilemaps?
Should I continue work on a project in 2019.3.9f1, or should I try to update
Scene crashing after importing a package
Why do all my scripts keep detaching when I copy my game files?
Scene's Path Lost
Is there a way to recover permanently deleted game files?
Seems i should've exported all ProBuilder meshes, all except 1 mesh are lost in the 1st scene
Screen safe area issues in Unity 2018 LTS
Project script unable to function overnight
Editor crashes loading scene
GameObject script references broken across project
Git corrupted my Unity project I think. HELP!
Rigidbody physics not working
[Tutorial] Setup Git in a Unity project
Please put the branch name in the delete branch box
Version Control takes way too long to find stuff to check in
Where do I start with version control?
Unity SwitchOnInteger compile error
Unity editor issue in animator layer
File cant be read
URP pink textures Only in editor, different results on different PC
Unity Version Control - "The file unitygui.conf contains errors"
Black screen in VR headset when running app
How to Recreate this Electromagnetic Effect?
How to restore a scene to a former save?
Game compilation to APK and .aab, never finishes
Unity playmode no longer works in Quest 3 headset
Can't Open Project Via Unity Hub