How to modify cs script in unity packages, with safe manners?

I am messing and playing with unity.animation package, which is still in very experimental stage. There is lots of features missing, to be desired.

Now, I would like feel up the gap, by editing relevant lib Cs file.
But since this lib to be changing, I am risking situation, when changes made by me will get overwritten with next package update.

How would I take control over specific DOS system behaviour, which is located in unity lib?
For example, I would like add tag to a job, which allow me to filter entities, which can be executed in that job. Something like, entities.withNone ()
?

Keep a repo version of the animation package in your packages folder using git (likely a submodule) so that when the package updates, you can rebase your changes onto the newest version.

Sorry, but I have no idea what you mean by this.

2 Likes

You pretty much answered my question thx.

Just side note, I tried to disable system from lib, and copy it to new cs file. But I have noticed, some systems are don in such way, that simple copy is not possible, as they got additional dependencies.

But tracking changes should do it.