Search Unity

Inspector Should Show Inner Classifier parent

Discussion in 'Entity Component System' started by RandyBuchholz, Jul 15, 2019.

  1. RandyBuchholz

    RandyBuchholz

    Joined:
    Sep 23, 2016
    Posts:
    51
    When a component is an inner classifier the inspector only shows the inner class name. It should show the full name.

    Code (CSharp):
    1.  
    2. public struct Building : IComponentData {
    3.     public struct Key : IComponentData {
    4.         public int Locator;
    5.     }
    6. }
    7.  
    8. EntityManager.CreateArchetype(
    9.     typeof(Building.Key),
    10. );
    The inspector shows the component type as "Key" and not "Building.Key".
     
    JesOb likes this.