[U2022.3] Unable to load the icon: 'd_SceneViewSnap-On@2x'
Closed this issue · 2 comments
Varneon commented
[U2022.3] Unable to load the icon: 'd_SceneViewSnap-On@2x'
Varneon commented
The name of the icon is now d_SceneViewSnap On@2x
Varneon commented
Since none of the icons in 2022.3 seem to contain hyphens ('-'), easiest approach to this issue might be intercepting the icon name property.
Example
#if UNITY_2022_3_OR_NEWER
public string IconName => iconName.Replace('-', ' ');
#else
public string IconName => iconName;
#endif
[SerializeField]
private string iconName = string.Empty;