Hi there !
How can i make buttons for inspector like this ?
Hi there !
How can i make buttons for inspector like this ?
Is that text ?
I think you’re missing what OP wants…
@ , what nature of the buttons is it you’re not able to make? Is it any button whatsoever, or is it the fact that they are radio buttons, or is it that they have images instead of text for the buttons?
If you download the (now official) text mesh pro package from the package manager, you can look at the source code for their inspectors. They have the exact same kinds of symbols for alignment, and it seems like they’re using:
The interesting file is TextMesh Pro/Scripts/Editor/TMP_EditorPanel.
I create own class:
namespace UnityEngine.UI.Extensions {
public class ModernText : Text , IPointerClickHandler {
//...
}
}
namespace UnityEngine.UI.Extensions {
[CustomEditor(typeof(ModernText))]
public class ModernTextEditor : Editor {
public override void OnInspectorGUI() {
// ...
}
}
I want show property of Text “alignment” in inspector of my class.