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
- Search: Inspector section icon is less sharp/more pixelated than other editor icons
- Search description string is always truncated
- [VFX] When Grouped Nodes are converted to Subgraph Operator resulting Graph Node is not included in the Group
- Search window icons are less sharp/more pixelated than other editor icons
- The Inspector can be covered when scaling the horizontal separator bar
Add comment