Encoding in unity .asset files?
Does anyone know how the 'content' field of the noesis asset in unity is encoded? The asset files look something like this:
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?
thanks,
sam
Code: Select all
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
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
m_EditorClassIdentifier:
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?
thanks,
sam
Re: Encoding in unity .asset files?
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: Brainferno and 6 guests