Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
460 B

  1. namespace VRTK
  2. {
  3. using UnityEngine;
  4. using UnityEditor;
  5. [CustomEditor(typeof(VRTK_RadialMenu))]
  6. public class VRTK_RadialMenuEditor : Editor
  7. {
  8. public override void OnInspectorGUI()
  9. {
  10. DrawDefaultInspector();
  11. VRTK_RadialMenu rMenu = (VRTK_RadialMenu)target;
  12. if (GUILayout.Button("Regenerate Buttons"))
  13. {
  14. rMenu.RegenerateButtons();
  15. }
  16. }
  17. }
  18. }