My try on PrintString() method

So i did it like this:

        string currentString = serializedObject.FindProperty("stringToPrint").stringValue;
        string requiredString = EditorGUILayout.TextField("Printing String", currentString);
        if (requiredString != currentString)
        {
            serializedObject.FindProperty("stringToPrint").stringValue = requiredString;
        }

Kinda complicated, but ot worked :slight_smile:

Privacy & Terms