Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'EditorGUILayout.ColorField is ambiguous error on import #32

Open
baroquedub opened this issue May 5, 2021 · 0 comments
Open

'EditorGUILayout.ColorField is ambiguous error on import #32

baroquedub opened this issue May 5, 2021 · 0 comments

Comments

@baroquedub
Copy link

Unity 2019.4.15 getting the following error on import:

The call is ambiguous between the following methods or properties: 'EditorGUILayout.ColorField(GUIContent, Color, bool, bool, bool, ColorPickerHDRConfig, params GUILayoutOption[])' and 'EditorGUILayout.ColorField(GUIContent, Color, bool, bool, bool, params GUILayoutOption[])'

Fixed, I think? by making an explicit reference to what type 'null' is.

VertexPainterWindow_GUI.cs line 464:
orig:
brushColor = EditorGUILayout.ColorField(new GUIContent("Brush Color"), brushColor, true, showAlpha, false, null);

change to:
GUILayoutOption[] options = null; brushColor = EditorGUILayout.ColorField(new GUIContent("Brush Color"), brushColor, true, showAlpha, false, options);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant