コード例 #1
0
 public override void OnInspectorGUI()
 {
     if (m_Target == null)
     {
         return;
     }
     this.DrawDefaultInspector();
     CoherentExposeProperties.Expose(m_Fields);
 }
コード例 #2
0
    public void OnEnable()
    {
        m_Target = target as MobileSurfaceView;
        var fields         = CoherentExposeProperties.GetProperties(m_Target);
        var index          = (int)CoherentExposePropertyInfo.FoldoutType.General;
        var renderingIndex =
            (int)CoherentExposePropertyInfo.FoldoutType.Rendering;

        m_Fields = new CoherentFoldout[]
        {
            fields[index],
            fields[renderingIndex]
        };
    }
コード例 #3
0
 public void OnEnable()
 {
     m_Target = target as CoherentUIView;
     m_Fields = CoherentExposeProperties.GetProperties(m_Target);
 }