- Home /
Formatting bold text in EditorUtility.DisplayDialog
So I'm going through the BergZerg Arcade item system tutorials to better help me get a handle on using a list as a ScriptableObject database. I'm following the core tutorials themselves fine, but in video 6 while coding the display dialog for deleting database items, he almost makes some text bold, then suggests we do it. I thought it would be handy to understand the formatting for that, so I decided to try it. Unfortunately, I can't seem to find a way to make it happen, as EditorUtility.DisplayDialog doesn't seem to have a constructor overload that accepts a GUIStyle, which is currently my only knowledge of how to achieve text formatting.
The code is as follows:
EditorUtility.DisplayDialog("Delete Quality", "Are you sure you want to delete " + quality.Get(cnt).QualityTypeName + "?", "Confirm", "Cancel");
I'd like the word delete in the first string to be bold. I can't seem to find any type of formatting that will allow for this in the code as it is. I'm fairly sure I could pull it out, apply a GUIStyle to it in a separate variable, and then concatenate that variable into the string, but I'm wondering if there's a trick to doing it without the extra code.
Your answer
![](https://koobas.hobune.stream/wayback/20220611230221im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
3D layout group 0 Answers
JsonUtility deserialization via JSON file doesn't work on WWW, works on File.ReadAllText 1 Answer
Formatting Text 1 Answer
Bullet Points 1 Answer