You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
494 B
C#

using UnityEngine;
using UnityEditor;
namespace InfinityPBR
{
public static class EquipObjectMenu {
[MenuItem("Window/Infinity PBR/Equip Object")] // Provides a menu item
public static void Equip()
{
if (!Selection.activeGameObject)
{
#if UNITY_EDITOR
Debug.Log("No Object Selected!");
#endif
return;
}
EquipObject.Equip(Selection.activeGameObject);
}
}
}