in debugger/debugger-worker/src/Values/Render/ValuePresenters/SerializedPropertyPresenter.cs [174:206]
private static string? GetValueFieldName(SerializedPropertyKind propertyType)
{
switch (propertyType)
{
case SerializedPropertyKind.Integer: return "longValue";
case SerializedPropertyKind.Boolean: return "boolValue";
case SerializedPropertyKind.Float: return "doubleValue";
case SerializedPropertyKind.String: return "stringValue";
case SerializedPropertyKind.Color: return "colorValue";
case SerializedPropertyKind.ObjectReference: return "objectReferenceValue";
case SerializedPropertyKind.LayerMask: return "intValue";
case SerializedPropertyKind.Enum: return "enumValueIndex";
case SerializedPropertyKind.Vector2: return "vector2Value";
case SerializedPropertyKind.Vector3: return "vector3Value";
case SerializedPropertyKind.Vector4: return "vector4Value";
case SerializedPropertyKind.Rect: return "rectValue";
case SerializedPropertyKind.ArraySize: return "intValue";
case SerializedPropertyKind.Character: return "intValue";
case SerializedPropertyKind.AnimationCurve: return "animationCurveValue";
case SerializedPropertyKind.Bounds: return "boundsValue";
// Gradient doesn't have a compact value presenter. It just shows "GradientValue" which is not useful
// case SerializedPropertyKind.Gradient: return "gradientValue"; // NOTE: Internal property
case SerializedPropertyKind.Quaternion: return "quaternionValue";
case SerializedPropertyKind.ExposedReference: return "exposedReferenceValue";
case SerializedPropertyKind.FixedBufferSize: return "intValue";
case SerializedPropertyKind.Vector2Int: return "vector2IntValue";
case SerializedPropertyKind.Vector3Int: return "vector3IntValue";
case SerializedPropertyKind.RectInt: return "rectIntValue";
case SerializedPropertyKind.BoundsInt: return "boundsIntValue";
}
// TODO: What to display for ManagedReference? managedReferenceValue is a setter only property
return null;
}