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.
|
namespace VRTK
|
|
{
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
[CustomEditor(typeof(VRTK_RadialMenu))]
|
|
public class VRTK_RadialMenuEditor : Editor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
DrawDefaultInspector();
|
|
|
|
VRTK_RadialMenu rMenu = (VRTK_RadialMenu)target;
|
|
if (GUILayout.Button("Regenerate Buttons"))
|
|
{
|
|
rMenu.RegenerateButtons();
|
|
}
|
|
}
|
|
}
|
|
}
|