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
- The tag adder functionality does not work if a space is entered instead of a name
- Errors thrown in the Console when configuring In-App Purchases package
- Longer Scaler Profile names go out of the"Scaler Profilers" section
- AI Navigation window UI elements overlap when the AI Navigation window is docked and resized
- Editor freezes after some time when using NavMeshQuery::Raycast
Add comment