|
|
|
|
|
|
so.Update(); |
|
|
|
|
|
|
|
// Drawing the VectorSensorComponent
|
|
|
|
EditorGUI.BeginChangeCheck(); |
|
|
|
|
|
|
|
EditorGUI.BeginDisabledGroup(!EditorUtilities.CanUpdateModelProperties()); |
|
|
|
{ |
|
|
|
|
|
|
} |
|
|
|
EditorGUI.EndDisabledGroup(); |
|
|
|
|
|
|
|
var requireSensorUpdate = EditorGUI.EndChangeCheck(); |
|
|
|
|
|
|
|
if (requireSensorUpdate) |
|
|
|
{ |
|
|
|
UpdateSensor(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void UpdateSensor() |
|
|
|
{ |
|
|
|
var sensorComponent = serializedObject.targetObject as VectorSensorComponent; |
|
|
|
sensorComponent?.UpdateSensor(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |