Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

[TextArea] attribute not working in unity ScriptableObject

Discussion in 'Scripting' started by ZombieTFK, Dec 5, 2018.

  1. ZombieTFK

    ZombieTFK

    Joined:
    Sep 6, 2016
    Posts:
    55
    Hi guys

    I'm trying to use the
    [TextArea]
    attribute in a unity ScriptableObject, but doesn't seem to be working for me, can anyone else confirm this behavior?

    Code (CSharp):
    1. [CreateAssetMenu(fileName = "BadManConfiguration", menuName = "AssetConfigurations/BadMan")]
    2. public class BadManConfiguration : ScriptableObject {
    3.     [TextArea(3,10)]
    4.     public String Description;
    5.     public String Name;
    6. }
    7.  
    Version 2018.2.14f1 personal

    Thanks!
     
  2. ZombieTFK

    ZombieTFK

    Joined:
    Sep 6, 2016
    Posts:
    55
    freaking... nevermind, mismatch between file name and class name :p
     
    Kurt-Dekker likes this.
  3. readpan

    readpan

    Joined:
    Dec 13, 2019
    Posts:
    1
    I have the same problem. How to please?
     
unityunity