I’m very puzzled by the contents of my Progression.asset
file as it exists at the start of this lecture.
Here’s the data I’ve manually entered into my Progression.asset
resource (in the Unity Editor):
Yet here’s the contents of the Progression.asset
file:
%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: 8bc293b47323475eac0b92737ea98c3e, type: 3}
m_Name: Progression
m_EditorClassIdentifier:
Yep, that’s the full file. No actual data is present at all! Where is the data?
I thought the file is saved - when I reopen Progression.asset
in the Editor the data is displayed as per the screenshot above. What’s more, all the game logic using it is working properly.
I do have “Force Text” set for Project Settings > Editor > Asset Serialization.
I’m using Unity 2018.4 on MacOS (I would have used 2018.3 but Rick did say that 2018.4 would probably be OK, but maybe this is one difference?)