Apply Change UI Color Change from custom EditorWindow

The change is applied to the inspector value and updates if something else changes or app played…

The image shows a red background that should be black based on the values in the inspector.

  • GameObject targetGameObject;
  • EditorUtility.SetDirty(targetGameObject);
  • SceneView.RepaintAll ();