I’m not sure how long this bug has existed, but I noticed it in the latest beta.
Setting Handles.color does not work for Handles.DrawWireCube. It does for other things (as shown with DrawWireDisc).
The repro below uses OnDrawGizmos, but I noticed this in a custom editor drawing in OnSceneGUI. Add to any GameObject with a MeshFilter and mesh:
#if UNITY_EDITOR
using UnityEngine;
using UnityEditor;
public class ExampleDrawWireCubeColorBroken : MonoBehaviour
{
private void OnDrawGizmos()
{
MeshFilter mf = GetComponent<MeshFilter>();
Handles.matrix = transform.localToWorldMatrix;
Mesh mesh = mf.sharedMesh;
Handles.color = Color.red;
Handles.DrawWireCube(mesh.bounds.center, mesh.bounds.size);
Handles.DrawWireDisc(mesh.bounds.center, Vector3.up, Mathf.Max(mesh.bounds.size.x, mesh.bounds.size.z) * 0.5f);
}
}
#endif