Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


icon

Specifies the path to an Editor window's default icon.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public string icon { get; set; }

Remarks

The path must be in the Project, and must include the default icon's name and file extension. For example:
Assets/Editor/MyIcons/MyWindowIcon.png
Any icon variants must be in the same folder as the default icon.