fix: #363 enum property did not return int value, but index (#364)

This commit is contained in:
Soraphis 2022-10-23 22:51:31 +02:00 committed by GitHub
parent b457ac386f
commit bc2a68527f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ namespace UnityAtoms.Editor
case SerializedPropertyType.String: return property.stringValue; case SerializedPropertyType.String: return property.stringValue;
case SerializedPropertyType.Color: return property.colorValue; case SerializedPropertyType.Color: return property.colorValue;
case SerializedPropertyType.LayerMask: return (LayerMask)property.intValue; case SerializedPropertyType.LayerMask: return (LayerMask)property.intValue;
case SerializedPropertyType.Enum: return property.enumValueIndex; case SerializedPropertyType.Enum: return property.intValue;
case SerializedPropertyType.Vector2: return property.vector2Value; case SerializedPropertyType.Vector2: return property.vector2Value;
case SerializedPropertyType.Vector3: return property.vector3Value; case SerializedPropertyType.Vector3: return property.vector3Value;
case SerializedPropertyType.Vector4: return property.vector4Value; case SerializedPropertyType.Vector4: return property.vector4Value;