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

2D

-

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()

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.