public static Radius GetRadiusValue(this SerializedProperty property) { SerializedProperty Height, Length, Radius, View; View = property.FindPropertyRelative("_View"); Height = property.FindPropertyRelative("_Height"); Length = property.FindPropertyRelative("_Length"); Radius = property.FindPropertyRelative("_Radius"); Radius radius = new Radius(); radius.View = View.boolValue; radius.Height = Height.GetHeightValue(); radius.Length = Length.GetLengthValue(); return(radius); }