1
0

SteamVR_UpdateModeEditor.cs 646 B

1234567891011121314151617181920212223242526
  1. using UnityEditor;
  2. using UnityEngine;
  3. using System.CodeDom;
  4. using Microsoft.CSharp;
  5. using System.IO;
  6. using System.CodeDom.Compiler;
  7. using System.Linq;
  8. using System.Collections.Generic;
  9. using System.Reflection;
  10. using System.Linq.Expressions;
  11. using System;
  12. namespace Valve.VR
  13. {
  14. [CustomPropertyDrawer(typeof(SteamVR_UpdateModes))]
  15. public class SteamVR_UpdateModesEditor : PropertyDrawer
  16. {
  17. public override void OnGUI(Rect _position, SerializedProperty _property, GUIContent _label)
  18. {
  19. _property.intValue = EditorGUI.MaskField(_position, _label, _property.intValue, _property.enumNames);
  20. }
  21. }
  22. }