diff --git a/Source/Editor/Surface/SurfaceStyle.cs b/Source/Editor/Surface/SurfaceStyle.cs index a39980b66..44701d94a 100644 --- a/Source/Editor/Surface/SurfaceStyle.cs +++ b/Source/Editor/Surface/SurfaceStyle.cs @@ -148,7 +148,16 @@ namespace FlaxEditor.Surface public void GetConnectionColor(ScriptType type, ConnectionsHint hint, out Color color) { if (type == ScriptType.Null) - color = Colors.Default; + { + if (hint == ConnectionsHint.Vector) + color = Colors.Vector; + else if (hint == ConnectionsHint.Scalar) + color = Colors.Float; + else if (hint == ConnectionsHint.Enum) + color = Colors.Enum; + else + color = Colors.Default; + } else if (type.IsPointer || type.IsReference) { // Find underlying type without `*` or `&`