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

CodeEditors

-

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)

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.