12 lines
363 B
C#
12 lines
363 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
[CustomPropertyDrawer(typeof(OVRLayerAttribute))]
|
|
class LayerAttributeEditor : PropertyDrawer {
|
|
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
|
{
|
|
// One line of oxygen free code.
|
|
property.intValue = EditorGUI.LayerField(position, label, property.intValue);
|
|
}
|
|
}
|