Search Issue Tracker

Fixed

Votes

0

Found in [Package]

0.10.0-preview

Issue ID

LOC-164

Regression

Yes

Adding Smart Format Formatters via inspector throws exception.

Package: Localization Package

-

1 - Open Localization settings and expand Smart Format options

2 - Click Add on the formatters list and select Template.

3 - Exception will be thrown

MissingMethodException: Default constructor not found for type UnityEngine.Localization.SmartFormat.Extensions.ListFormatter
System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Activator.CreateInstance (System.Type type) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
UnityEditor.Localization.UI.Toolkit.ManagedReferenceReorderableList.AddManagedItem (UnityEditor.Localization.UI.Toolkit.ReorderableList list, System.Type type, System.Int32 index) (at /Users/karl/Unity/Packages/com.unity.localization/Packages/com.unity.localization/Editor/UI/Utility/ManagedReferenceReorderableList.cs:100)
UnityEditor.Localization.UI.Toolkit.ManagedReferenceReorderableList+<>c__DisplayClass12_1.<ShowAddItemMenu>b__0 () (at /Users/karl/Unity/Packages/com.unity.localization/Packages/com.unity.localization/Editor/UI/Utility/ManagedReferenceReorderableList.cs:84)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUI/GenericMenu.cs:121)

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.