public static void SetIcon(GameObject go, GameObjectShapeIcon icon) { if (_largeIcons == null) { _largeIcons = GetTextures("sv_icon_dot", "_pix16_gizmo", 0, 16); } SetIcon(go, _largeIcons[(int)icon].image as Texture2D); }
public static void SetIcon(this GameObject go, GameObjectShapeIcon icon) { #if UNITY_EDITOR IconUtility.SetIcon(go, icon); #endif }