Topic Author
Posts: 19
Joined: 21 Aug 2019, 19:22

Encoding in unity .asset files?

09 Apr 2020, 18:25

Does anyone know how the 'content' field of the noesis asset in unity is encoded? The asset files look something like this:
%YAML 1.1
%TAG !u!,2011:
--- !u!114 &11400000
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 0}
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: 11500000, guid: f32223f32d23334234234d23d23e233, type: 3}
  m_Name: HUDGameStateView
  source: Assets/Jojo.xaml
  content: efbbbf3c55736572436f6e74726f6c0a2020786d6c6e733d2268747470 ....

We notice that 'content' is changing between different machines all the time, but since it's using some sort of encoding we don't know why exactly it's changing. I was thinking if I could run a decoder manually I could see what's going on.. any suggestions?


User avatar
Site Admin
Posts: 3022
Joined: 20 Jan 2012, 17:18

Re: Encoding in unity .asset files?

09 Apr 2020, 18:37

The differences you are observing are probably CR/LF between macOS and Windows. We fixed this in 3.0. The encoding is UTF8 by the way.

Who is online

Users browsing this forum: No registered users and 0 guests