Search Issue Tracker
Fixed in 5.4.0
Votes
0
Found in
5.4.0b1
Issue ID
759462
Regression
Yes
'GetLocalizedString is not allowed...' error in console on dropping sprite into scene
1. What happened
Dropping sprite into scene view causes the following error to be logged into console:
GetLocalizedString is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'SpriteRendererEditor' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.SpriteRendererEditor:.cctor()
-----------------------------------------
To repro:
- Create new scene
- Drop 'Sprite (2D and UI)' asset into Scene view or Hierarchy.
---> Error appears in console
Also the same error appears in console every time project is reopened and the sprite is selected.
2. How we can reproduce it using the example you attached
- can use sprite from the attached project to repro the above sequence.
Regression from 5.3.1p2
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- AI Navigation Preferences are not indexed for Search and cannot be found when searching for them in the Preferences Search field
- Sprite with normal map is lit incorrectly when GameObject is rotated 180 degrees on Y axis or Z Scale is set to "-1"
- SpeedTree does not move when using WindZone while having Vulkan or OpenGLES3 as an active Graphics API
- Shader Graph Preferences are not indexed for Search and cannot be found when searching for them in the Preferences Search field
- Excessive bloom intensity when using narrow aspect ratios
Add comment