Search Unity

Question Field not visible in Editor for custom class

Discussion in 'XR Interaction Toolkit and Input' started by pkanimator, Mar 9, 2021.

  1. pkanimator

    pkanimator

    Joined:
    Dec 30, 2013
    Posts:
    2
    Hi!

    Unity: 2019.4.20f1
    XR Interaction Toolkit: 1.0.0 pre2

    Unity isn't showing me in the Inspector any custom field (in this case a list, but any type really) that I'm adding to this class, that I extended from XRGrabInteractable.
    See example below:

    Code (CSharp):
    1.  
    2. public class MyXRGrabInteractable : XRGrabInteractable
    3. {
    4.     public List<XRSimpleInteractable> myList = new List<XRSimpleInteractable>();
    5. ...
    6.  
    I already restarted and tested without using an XRSimpleInteractable within a Monobehaviour class and the Inspector works just fine.

    Any idea why this is happening?
     
  2. chris-massie

    chris-massie

    Unity Technologies

    Joined:
    Jun 23, 2020
    Posts:
    231
    This is fixed in 1.0.0-pre.3
     
  3. pkanimator

    pkanimator

    Joined:
    Dec 30, 2013
    Posts:
    2
    Thanks for your reply