Make an non editable Field in editor

I tried this tutorial “This”, but i can’t use that attribute on: { get; protected set}

And i tried:

EditorGUILayout.IntField("Status: ", playerInfo.m_Status);

But how i can make this non-editable?, i mean to look like this:
3175779--242025--Capture.JPG

Did you try that

GUI.enabled = false;
...
GUI.enabled = true;
5 Likes

Is working, thanks :slight_smile:

How I can Make this but using UI toolkit and TextField?

The UI toolkit is actually object / class based. So have you checked the documentation? The isReadOnly property sounds pretty much like what you need.