Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is there a list of known supported datatypes for the inspector?

Discussion in 'Editor & General Support' started by NickVst, Aug 5, 2020.

  1. NickVst

    NickVst

    Joined:
    Feb 17, 2017
    Posts:
    25
    I'm specifically wondering about the fields that show up in the inspector when they are marked as public or serializable.

    I know that primitive datatypes are supported for entering directly, enums and flags are supported with a dropdown, Lists and Arrays are supported for (quite terrible) editing, Unity components are supported for drag and drop edit-time linking and serializable classes that consist of these items are supported, showing as a collection of its contents.

    I'm mostly curious if there's a FAQ list of these datatypes floating around, but if you have any additions to the supported datatypes in general, do share.
     
    Last edited: Aug 5, 2020
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,893
    Any serializable type is compatible with the inspector.

    A few useful types that people miss:
    • LayerMask
    • AnimationCurve
    • Gradient
    • UnityEvent