Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    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:
    52
    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:
    52
    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