@@ -16,8 +16,8 @@ public abstract class BaseDataProviderServiceInspector : BaseMixedRealityToolkit
1616 {
1717 protected class ServiceConfigurationProperties
1818 {
19- public SerializedProperty Name ;
20- public SerializedProperty Type ;
19+ public SerializedProperty componentName ;
20+ public SerializedProperty componentType ;
2121 public SerializedProperty providerProfile ;
2222 public SerializedProperty runtimePlatform ;
2323 }
@@ -50,7 +50,7 @@ protected virtual void AddDataProvider()
5050 SerializedProperty provider = providerConfigurations . GetArrayElementAtIndex ( providerConfigurations . arraySize - 1 ) ;
5151
5252 var providerProperties = GetDataProviderConfigurationProperties ( provider ) ;
53- providerProperties . Name . stringValue = $ "New data provider { providerConfigurations . arraySize - 1 } ";
53+ providerProperties . componentName . stringValue = $ "New data provider { providerConfigurations . arraySize - 1 } ";
5454 providerProperties . runtimePlatform . intValue = - 1 ;
5555 providerProperties . providerProfile . objectReferenceValue = null ;
5656
@@ -77,13 +77,13 @@ protected virtual void ApplyProviderConfiguration(Type dataProviderType, Service
7777 MixedRealityDataProviderAttribute providerAttribute = MixedRealityDataProviderAttribute . Find ( dataProviderType ) as MixedRealityDataProviderAttribute ;
7878 if ( providerAttribute != null )
7979 {
80- providerProperties . Name . stringValue = ! string . IsNullOrWhiteSpace ( providerAttribute . Name ) ? providerAttribute . Name : dataProviderType . Name ;
80+ providerProperties . componentName . stringValue = ! string . IsNullOrWhiteSpace ( providerAttribute . Name ) ? providerAttribute . Name : dataProviderType . Name ;
8181 providerProperties . providerProfile . objectReferenceValue = providerAttribute . DefaultProfile ;
8282 providerProperties . runtimePlatform . intValue = ( int ) providerAttribute . RuntimePlatforms ;
8383 }
8484 else
8585 {
86- providerProperties . Name . stringValue = dataProviderType . Name ;
86+ providerProperties . componentName . stringValue = dataProviderType . Name ;
8787 }
8888
8989 serializedObject . ApplyModifiedProperties ( ) ;
@@ -126,7 +126,7 @@ protected bool RenderDataProviderEntry(int index, GUIContent removeContent, Syst
126126 {
127127 using ( new EditorGUILayout . HorizontalScope ( ) )
128128 {
129- providerFoldouts [ index ] = EditorGUILayout . Foldout ( providerFoldouts [ index ] , providerProperties . Name . stringValue , true ) ;
129+ providerFoldouts [ index ] = EditorGUILayout . Foldout ( providerFoldouts [ index ] , providerProperties . componentName . stringValue , true ) ;
130130
131131 if ( GUILayout . Button ( removeContent , EditorStyles . miniButtonRight , GUILayout . Width ( 24f ) ) )
132132 {
@@ -141,7 +141,7 @@ protected bool RenderDataProviderEntry(int index, GUIContent removeContent, Syst
141141
142142 using ( var c = new EditorGUI . ChangeCheckScope ( ) )
143143 {
144- EditorGUILayout . PropertyField ( providerProperties . Type , ComponentTypeLabel ) ;
144+ EditorGUILayout . PropertyField ( providerProperties . componentType , ComponentTypeLabel ) ;
145145 if ( c . changed )
146146 {
147147 serializedObject . ApplyModifiedProperties ( ) ;
0 commit comments