I have found that the GradientField method in EditorGUI and EditorGUILayout is private and is not available for public usage, It is really bad practice to disallow developers to use such useful API.
Anyway, I don’t know why this useful method is private and is not available for public, We hope to see this method be available for public.
The EditorGUIUtility.LookLikeInspector is not related and is obsolete though.
And the HideInInspector is used for MonoBehaviour/ScriptableObject fields not for EditorWindow or similar.
What I am looking for is to draw a field like ColorField or TextField for Gradients.
I know there is some workarounds for doing this manually without directly using Unity editor API, but Unity provided this API while not for Public, just for Private and Internal use, it is weird.
I have tried to use this method using Reflection and I was successful by doing this so, while the method could be provided as a public method.
And the Reflection has it’s faults, the first fault is the speed, the second fault is the complicated way of using it for just a simple task, …
I have read it before posting, nothing, they are using Workarounds, I am currently using Reflection, it is a workaround and it works, while the method should be provided for public use.