public static void SetIcon(GameObject go, GameObjectLabelIcon icon) { if (_labelIcons == null) { _labelIcons = GetTextures("sv_label_", string.Empty, 0, 8); } SetIcon(go, _labelIcons[(int)icon].image as Texture2D); }
public static void SetIcon(this GameObject go, GameObjectLabelIcon icon) { #if UNITY_EDITOR IconUtility.SetIcon(go, icon); #endif }