Optimize out System.ComponentModel.TypeConverter assembly usage to reduce cooked game builds

This commit is contained in:
Wojtek Figat
2023-04-03 13:51:33 +02:00
parent 493f3430bc
commit e995736012
31 changed files with 76 additions and 29 deletions

View File

@@ -50,7 +50,6 @@
*/
using System;
using System.ComponentModel;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -58,7 +57,9 @@ using System.Runtime.InteropServices;
namespace FlaxEngine
{
[Serializable]
[TypeConverter(typeof(TypeConverters.Float4Converter))]
#if FLAX_EDITOR
[System.ComponentModel.TypeConverter(typeof(TypeConverters.Float4Converter))]
#endif
partial struct Float4 : IEquatable<Float4>, IFormattable
{
private static readonly string _formatString = "X:{0:F2} Y:{1:F2} Z:{2:F2} W:{3:F2}";