Add ToVariantType support.

This commit is contained in:
2021-04-08 18:57:47 +02:00
parent b4b41d6773
commit f6a6e298e0
+6
View File
@@ -450,6 +450,12 @@ namespace FlaxEditor.Utilities
variantType = VariantType.Vector3;
else if (type == typeof(Vector4))
variantType = VariantType.Vector4;
else if (type == typeof(Int2))
variantType = VariantType.Int2;
else if (type == typeof(Int3))
variantType = VariantType.Int3;
else if (type == typeof(Int4))
variantType = VariantType.Int4;
else if (type == typeof(Color))
variantType = VariantType.Color;
else if (type == typeof(Guid))