We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 650b4f2 commit 09dcdc6Copy full SHA for 09dcdc6
Unity3D/Assets/RosSharp/Scripts/Urdf/Editor/CustomInspectors/UrdfVisualsEditor.cs
@@ -26,10 +26,13 @@ class UrdfVisualsEditor : UnityEditor.Editor
26
private UrdfVisuals urdfVisuals;
27
private GeometryTypes geometryType = GeometryTypes.Box;
28
29
- public override void OnInspectorGUI()
+ protected virtual void OnEnable()
30
{
31
- urdfVisuals = (UrdfVisuals)target;
+ urdfVisuals = (UrdfVisuals) serializedObject.targetObject;
32
+ }
33
34
+ public override void OnInspectorGUI()
35
+ {
36
GUILayout.Space(10);
37
geometryType = (GeometryTypes)EditorGUILayout.EnumPopup("Type of visual", geometryType);
38
0 commit comments