Search Unity

[TextArea] not working within ScriptableObject

Discussion in 'Scripting' started by mostlyhuman, Jul 14, 2018.

  1. mostlyhuman

    mostlyhuman

    Joined:
    Mar 16, 2013
    Posts:
    53
    I am using 2018.2 and [TextArea] is not working within a ScriptableObject. I am trying to get a textbox to show up in the inspector for the SO instead of just a single string line.

    [TextArea(4, 6)]
    public string inGameDescription;

    This shows just a single text/string line in the inspector.
     
  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    Do you have a custom editor gui for that SO that may be overriding that attribute?
     
  3. mostlyhuman

    mostlyhuman

    Joined:
    Mar 16, 2013
    Posts:
    53
    Something was hosed in the script, it was only like a 20 line script which no obvious issues but deleting it and redoing it fixed the issue, very strange.