Hi,
It’s the first time I’m encoutering this for the last few years. I created a new Sprite Asset the way I do usualy but whenever I launch unity it keeps reseting to an empty state.
I need to press “Update Sprite asset” each time to have the Sprite Tables populated.
Any idea what could be going on ?
Thanks.
It was systemically happening. I deleted the file and created a sprite asset again from the sprite sheet. The behaviours does not seem to reproduce anymore.
It happens again.
@Stephan_B Sorry to ping you on this but it is quite a critical moment on the project lifetime and this makes for a lot of lost time. Any insight on why a Sprite asset would not serialize and/or reset itself ?
As you can see the saved sprite asset tables are empty even after we pressed “Updated Sprite asset” and that it was correctly populated. When deleting and recreating the sprite asset it seems to be working again.
Unity LTS 2021.3.19 and TMP 3.0.6
%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: 84a92b25f83d49b9bc132d206b370281, type: 3}
m_Name: PortraitSprites
m_EditorClassIdentifier:
hashCode: -1798582227
material: {fileID: 8069939188130839121}
materialHashCode: 0
m_Version: 1.1.0
m_FaceInfo:
m_FaceIndex: 0
m_FamilyName:
m_StyleName:
m_PointSize: 0
m_Scale: 0
m_UnitsPerEM: 0
m_LineHeight: 0
m_AscentLine: 0
m_CapLine: 0
m_MeanLine: 0
m_Baseline: 0
m_DescentLine: 0
m_SuperscriptOffset: 0
m_SuperscriptSize: 0
m_SubscriptOffset: 0
m_SubscriptSize: 0
m_UnderlineOffset: 0
m_UnderlineThickness: 0
m_StrikethroughOffset: 0
m_StrikethroughThickness: 0
m_TabWidth: 0
spriteSheet: {fileID: 2800000, guid: 2510f865d97ab9442905a3761bff0751, type: 3}
m_SpriteCharacterTable: []
m_SpriteGlyphTable: []
spriteInfoList: []
fallbackSpriteAssets: []
--- !u!21 &8069939188130839121
Material:
serializedVersion: 8
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: TextMeshPro/Sprite
m_Shader: {fileID: 4800000, guid: cf81c85f95fe47e1a27f6ae460cf182c, type: 3}
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 2800000, guid: 2510f865d97ab9442905a3761bff0751, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _ColorMask: 15
- _CullMode: 0
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UseUIAlphaClip: 0
m_Colors:
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
- _Color: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
Also occurs with Unity 2020.3.48f1, TMP 3.2.0-pre.4
issue is active as of now: