Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2021.1.X
[UI Builder] NullReferenceException errors are thrown on selecting TSS Theme file preset asset
NullReferenceException errors thrown continuously on selecting TSS Theme file preset asset.
Steps to repro:
1. Create a new Project.
2. Project Window > Click on "+" > UI Toolkit >
3. TSS Theme File > Create its preset asset.
4. Select newly created preset asset.
NullReferenceException errors in the console.
No errors in the console.
2021.1.0a9, 2020.2.0f1, 2020.2.0b11.
-Unable to test on 2020.2.b10 to 2020.2.0a1 due to errors on installing UI builder package.
-TSS file Theme option is not available in 2020.1.1f1
Occurring on Windows 10 & Mac 10.15.
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.UIElements.StyleSheets.ThemeStyleSheetImporterEditor.LoadThemeAssetDefinitionState (UnityEditor.UIElements.StyleSheets.ThemeAssetDefinitionState extraData, System.String assetPath) (at <7ba5bac7360d4ac8a9ebd5b4256fdfe2>:0)
UnityEditor.UIElements.StyleSheets.ThemeStyleSheetImporterEditor.InitializeExtraDataInstance (UnityEngine.Object extraData, System.Int32 targetIndex) (at <7ba5bac7360d4ac8a9ebd5b4256fdfe2>:0)
UnityEditor.AssetImporters.AssetImporterEditor.InternalSetTargets (UnityEngine.Object t) (at <a19e86c7bf354115a4c6a5953c0575cb>:0)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- Resizing Profiler Module Details panel and releasing mouse button outside Unity doesn't cancel resize
- "Auto-hide gizmos" preference is not saved when reopening the project
- Sampling a custom depth texture on a machine with a GTX 1080 makes object's textures display the wrong color when in Play mode or Player
- Terrain is missing the Hidden/TerrainEngine/Details/WavingDoublePass shader when AssetBundles are built in older Unity Versions
- [Android] URP Project crashes when built on a device with PowerVR Rogue GE8320 GPU