Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity editor search functionality not working for sub class

Discussion in '2020.2 Beta' started by Thimo_, Aug 13, 2020.

  1. Thimo_

    Thimo_

    Joined:
    Aug 26, 2019
    Posts:
    59
    Unity version 2020.1 added the ability to serialize generics in the inspector which is great.
    However, when using this the Unity editor search functionality can't find the scriptableobjects that should show up.

    Code (CSharp):
    1. using System;
    2. using UnityEngine;
    3.  
    4. [Serializable]
    5. public class Distance<T> : ScriptableObject
    6. {
    7.     [SerializeField] private T _testVariable;
    8. }
    9.  
    10. [CreateAssetMenu(menuName = "Distance", fileName = "DistanceSO")]
    11. public class Distance : Distance<Vector3> { }
    Code (CSharp):
    1. using UnityEngine;
    2.  
    3. public class DistanceSerialize : MonoBehaviour
    4. {
    5.     [SerializeField] private Distance<Vector3> distance;
    6. }
    As you can see in the image, The unity search functionality doesn't find my DistanceSO and DistanceSO1 objects.

    Is this a bug or something that will be added/fixed?
     

    Attached Files: