// Copyright (C) 2019-2021 Alexander Bogarsukov. All rights reserved. // See the LICENSE.md file in the project root for more information. using System; using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEngine; namespace UnityFx.Outline { [CustomPropertyDrawer(typeof(OutlineSettingsInstance))] public class OutlineSettingsInstanceDrawer : PropertyDrawer { public override void OnGUI(Rect rc, SerializedProperty property, GUIContent label) { EditorGUI.BeginProperty(rc, label, property); OutlineSettingsEditor.DrawSettingsInstance(rc, property); EditorGUI.EndProperty(); } public override float GetPropertyHeight(SerializedProperty property, GUIContent label) { return OutlineSettingsEditor.GetSettingsInstanceHeight(property); } } }