Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2018.2.0a6
Issue ID
1379547
Regression
No
[Overlays] Toolbar UI elements show their text only in Panel mode
1. Open a project with whatever unity version that has Overlays feature
2. Create a "Editor" folder in the project and import the attached script in it
3. Make sure the Overlay is visible through the Overlay menu in the scene view (Spacebar shortcut)
4. Right click on the overlay's header and select panel option
You should see all the UI controls having their text displayed as specified by the "text" property in the code.
5. Now, you can try to drag and drop the overlay in the top toolbar or simply change the orientation option to horizontal (Right click header, choose Horizontal option)
Result
The text aren't display if the overlay is not in panel mode
Expect
The Horizontal mode should display the text of the Element like in panel mode
Note that the current attached script is implementing a regular UIElement Button for "Create Cube" element, that why we can see the text.
If we change the Button class to use EditorToolbarButton class instead, the text won't show when docked or in Horizontal orientation.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [URP][Lighting] The skybox doesn't render after changing the settings of the Material when using the URP Render Pipeline
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
Add comment