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
- Foldout arrow indent is misaligned in the Inspector when used in Custom Type
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
Add comment