Search Issue Tracker
Fixed
Fixed in 2019.3.X
Votes
0
Found in
2018.3.0a1
2018.4
2019.1
2019.2
2019.3
2019.3.0b9
2020.1
Issue ID
1195481
Regression
Yes
[Preset] Unable to uncheck/check Volumetric Setup property in TextmeshPro preset asset
Unable to uncheck/check Volumetric Setup property in TextmeshPro preset asset.
NullReferenceException error is thrown on clicking on Volumetric Setup checkbox.
Steps to repro:
1. Create a new project.
2. Import TMP Essentials > Import TMP Examples & Extras.
3. Gameobject > 3D Object > Text - TextMeshPro.
4. Create a Preset of Text - TextMeshPro.
5. Try to enable/disable Volumetric Setup property in preset asset
Actual Result:
Unable to uncheck/check the Volumetric Setup property.
Expected Result:
Able to uncheck/check the Volumetric Setup property.
Reproducible on:
2020.1.0a11, 2019.3.0b9, 2019.2.f1, 2019.1.f1, 2018.4.11f1, 2018.3.0a1.
Working Fine in:
2018.2.0f2.
Environment:
Windows 10 & Mac 10.14.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
TMPro.TMP_MeshInfo.ResizeMeshInfo (System.Int32 size, System.Boolean isVolumetric) (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_MeshInfo.cs:314)
TMPro.TMP_TextInfo.ResetVertexLayout (System.Boolean isVolumetric) (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_TextInfo.cs:116)
TMPro.EditorUtilities.TMP_EditorPanel.DrawVolumetricSetup () (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_EditorPanel.cs:116)
TMPro.EditorUtilities.TMP_EditorPanel.DrawExtraSettings () (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_EditorPanel.cs:51)
TMPro.EditorUtilities.TMP_BaseEditorPanel.OnInspectorGUI () (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_BaseEditorPanel.cs:260)
UnityEditor.Presets.PresetEditor.DrawInternalInspector () (at <8fdb511b120d4b249e3a836bb395bfee>:0)
UnityEditor.Presets.PresetEditor.DrawPresetData () (at <8fdb511b120d4b249e3a836bb395bfee>:0)
UnityEditor.Presets.PresetEditor.OnInspectorGUI () (at <8fdb511b120d4b249e3a836bb395bfee>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass54_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <8fdb511b120d4b249e3a836bb395bfee>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][Mobile Notifications] The Player freezes or crashes when calling "AndroidNotificationCenter.GetNotificationChannel" every frame
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
Resolution Note:
This was a cosmetic issue which has been resolved but given the Volumetric mode was experimental, it has been removed from the inspector in newer releases of the TextMesh Pro package.