Fix the float4 colour inspector for CultMath
UnityExtensions no longer has Color.ToFloat4, so MathematicsInspector's float4 colour field converts back with the bridge's ToCultMath. This is the only Assembly-CSharp-Editor break; Unity 6000.3.24f1 batchmode now compiles with no error CS. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
2281793154
commit
422b6474ff
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using CultMath;
|
||||
using CultMath.UnityBridge;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using static UnityEditor.EditorGUILayout;
|
||||
|
|
@ -76,7 +77,7 @@ public class Float4ColorInspector : BaseInspector<float4, InspectableColorAttrib
|
|||
using (new HorizontalScope())
|
||||
{
|
||||
GUILayout.Label(label, GUILayout.Width(width));
|
||||
return ColorField(value.ToColor()).ToFloat4();
|
||||
return ColorField(value.ToColor()).ToCultMath();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue