1234567891011121314151617181920212223242526 |
- using UnityEditor;
- using UnityEngine;
- using System.CodeDom;
- using Microsoft.CSharp;
- using System.IO;
- using System.CodeDom.Compiler;
- using System.Linq;
- using System.Collections.Generic;
- using System.Reflection;
- using System.Linq.Expressions;
- using System;
- namespace Valve.VR
- {
- [CustomPropertyDrawer(typeof(SteamVR_UpdateModes))]
- public class SteamVR_UpdateModesEditor : PropertyDrawer
- {
- public override void OnGUI(Rect _position, SerializedProperty _property, GUIContent _label)
- {
- _property.intValue = EditorGUI.MaskField(_position, _label, _property.intValue, _property.enumNames);
- }
- }
- }
|