Skip to content

Instantly share code, notes, and snippets.

@ErnSur
Created May 21, 2022 17:37
Show Gist options
  • Save ErnSur/d1e7add5c514570721f5fbc252a67295 to your computer and use it in GitHub Desktop.
Save ErnSur/d1e7add5c514570721f5fbc252a67295 to your computer and use it in GitHub Desktop.
CustomDockAreaButton
class CustomWindow : EditorWindow
{
// ShowButton is a special EditorWindow message that provides a way to draw buttons in dock area
private void ShowButton(Rect r)
{
EditorGUI.DrawRect(r,Color.cyan);
GUI.Toggle(r, false, GUIContent.none, "IN LockButton");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment