Search Issue Tracker
Fixed in 5.4.0
Votes
0
Found in
5.4.0b4
Issue ID
766645
Regression
Yes
[2D] Error message appears when clicking Slice button in Editor (GetLocalized String is not allowed to be called
Error message appears when clicking Slice button in Editor (GetLocalized String is not allowed to be called)
- add a sprite to the project
- set its Sprite Mode to Multiple
- open the Sprite Editor
- click on the Slice button to bring up the options for slicing
The following error occurs:
GetLocalizedString is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'SpriteEditorMenu' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.EditorGUIUtility:TextContent(String)
UnityEditorInternal.SpriteEditorMenu:.ctor()
UnityEngine.ScriptableObject:CreateInstance()
UnityEditorInternal.SpriteEditorMenu:ShowAtPosition(Rect) (at C:/buildslave/unity/build/Editor/Mono/SpriteEditor/SpriteEditorMenu.cs:113)
UnityEditor.DockArea:OnGUI()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Light rendering artefacts appear in the Editor when assigning unsupported 3D Custom Render Texture in Camera’s Output Texture, unclearable errors and warnings spammed
- Memory leak when running a test with "GfxThreadingMode" set to "SplitJobs"
- Loading Unloaded unsaved Scene throws “ArgumentException” error in the Console
- Crash on std::__1::__tree_const_iterator when opening the Build Profiles window in a specific project
- Sub-State machine “breadcrumb trail” doesn’t fit in the window if there’s too many Sub-State machines
Add comment