/// <summary> /// Draws the property. /// </summary> protected override void DrawPropertyLayout(GUIContent label) { Rect labelRect; var contentRect = SirenixEditorGUI.BeginHorizontalPropertyLayout(label, out labelRect); { EditorGUI.BeginChangeCheck(); var val = SirenixEditorFields.VectorPrefixSlideRect(labelRect, this.ValueEntry.SmartValue); if (EditorGUI.EndChangeCheck()) { this.ValueEntry.SmartValue = val; } var showLabels = SirenixEditorFields.ResponsiveVectorComponentFields && contentRect.width >= 185; GUIHelper.PushLabelWidth(SirenixEditorFields.SingleLetterStructLabelWidth); this.ValueEntry.Property.Children[0].Draw(showLabels ? GUIHelper.TempContent("X") : null); this.ValueEntry.Property.Children[1].Draw(showLabels ? GUIHelper.TempContent("Y") : null); this.ValueEntry.Property.Children[2].Draw(showLabels ? GUIHelper.TempContent("Z") : null); GUIHelper.PopLabelWidth(); } SirenixEditorGUI.EndHorizontalPropertyLayout(); }