@@ -28,26 +28,24 @@ void OnEnable()
2828 public override void OnInspectorGUI ( )
2929 {
3030 SofaBaseComponent compo = ( SofaBaseComponent ) this . target ;
31- //if (compo.isAwake() == false)
32- //return;
33-
31+ EditorGUILayout . LabelField ( "Sofa Component Information" , EditorStyles . whiteLargeLabel ) ;
3432 EditorGUI . BeginDisabledGroup ( true ) ;
35- compo . UniqueNameId = EditorGUILayout . TextField ( "Unique Name Id" , compo . UniqueNameId ) ;
36- EditorGUILayout . ObjectField ( "Sofa Context" , compo . m_sofaContext , typeof ( Object ) , true ) ;
37- EditorGUILayout . ObjectField ( "Sofa DAG Node" , compo . m_ownerNode , typeof ( Object ) , true ) ;
33+ EditorGUILayout . TextField ( "Component Type" , compo . m_componentType ) ;
3834 EditorGUILayout . EnumPopup ( "BaseComponentType" , compo . m_baseComponentType ) ;
39- compo . m_componentType = EditorGUILayout . TextField ( "Component Type" , compo . m_componentType ) ;
35+ EditorGUILayout . TextField ( "Unique Name Id" , compo . UniqueNameId ) ;
36+ EditorGUILayout . ObjectField ( "Sofa DAG Node" , compo . m_ownerNode , typeof ( Object ) , true ) ;
4037 EditorGUI . EndDisabledGroup ( ) ;
4138
4239 EditorGUILayout . Separator ( ) ;
43-
40+ EditorGUILayout . LabelField ( "SofaUnity Parameters" , EditorStyles . whiteLargeLabel ) ;
4441 compo . m_log = EditorGUILayout . Toggle ( "Dump logs" , compo . m_log ) ;
4542
4643 EditorGUILayout . Separator ( ) ;
4744 SofaDataArchiver dataArchiver = compo . m_dataArchiver ;
4845 if ( dataArchiver == null || ! m_showData )
4946 return ;
5047
48+ EditorGUILayout . LabelField ( "Sofa Data" , EditorStyles . whiteLargeLabel ) ;
5149 List < SofaData > m_unssuportedData = new List < SofaData > ( ) ;
5250
5351 for ( int i = 0 ; i < dataArchiver . m_names . Count ; i ++ )
0 commit comments