- Home /
Question by
NamelessGames_ · Jan 16 at 02:22 PM ·
guiunityeditorinspectoreditor-scripting
Align text into PropertyField
Hi all.
Is there a way to align text into a property field? I don't mean "label", I mean the text into field.
For example:
EditorGUI.PropertyField(fieldPosition, serializedVar, GUIContent.none);
I'ld like that value into "serializedVar" would be right aligned not left.
Thank you!
Comment
Answer by logicandchaos · Jan 16 at 04:07 PM
It's all in the documentation
https://docs.unity3d.com/2019.1/Documentation/ScriptReference/UI.Text-alignment.html