Ejemplo n.º 1
0
        public InspectionProperties GetInspectProperties()
        {
            InspectionProperties props = new InspectionProperties();

            props.TitleOverride = "Logger";
            return(props);
        }
        public EZInspectionListenerContainer(GameObject context, IEZInspectionListener listener)
        {
            m_Listener = listener;
            m_Props    = m_Listener.GetInspectProperties();

            if (string.IsNullOrWhiteSpace(m_Props.TitleOverride))
            {
                m_ShortTitle = listener.GetType().Name;
            }
            else
            {
                m_ShortTitle = m_Props.TitleOverride;
            }

            m_FullTitle         = context.name + "." + m_ShortTitle;
            m_IsInspectorActive = new PropertyPrefBool("DQR.EZInspect." + m_FullTitle + ".Active", m_Props.IsHiddenByDefault);
        }