Jump to content

Could the binary vs text detection be improved for Unity YAML (asset) files?


Xarbrough

Recommended Posts

I noticed that Plastic often doesn't display a file revision diff, because it thinks the file is binary, like this:

773559478_image(3).thumb.png.adae4fdfde8239f55ac8baaf7dc22b76.png

For this reason, I started configuring the filetypes.conf file, which works correctly when I add the entry and restart the client.

However, I'm wondering, wouldn't it be possible to improve this auto detection for files within Unity? In our case, almost all files in the Unity project are text files, because they are all serialized to YAML, which makes them human readable, diffable and mergeable. I often like to see what changes I exactly made to prefabs or ScriptableObjects and I can check in the YAML in the pending changes view. But the detection issues seem to mean I have to setup every single file type. Is this really necessary or is there a better way? Either for me configuring things or for Plastic developers to improve the detection maybe with some assumptions about Unity projects?

Link to comment
Share on other sites

Thanks, here's our current list. It's not exhaustive but only the most common which we use in our day-to-day work. Almost all of them are serialized as YAML, which is a plain text format and looks very readable, so that's why I was wondering why the auto-detection even thinks they are binary.

filetypes.conf

 

.anim:txt
.asmdef:txt
.asset:txt
.controller:txt
.giparams:txt
.mat:txt
.mat:txt
.meta:txt
.mixer:txt
.overrideController:txt
.physicMaterial:txt
.playable:txt
.prefab:txt
.scenetemplate:txt
.shader:txt
.shadergraph:txt
.shadervariants:txt
.signal:txt
.spriteatlas:txt
.unity:txt
.uss:txt
.uxml:txt

LightingData.asset:bin

 

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...