zombie_mp/Assets/HQ FPS Weapons/Scripts/Equipment/First Person/Editor/DelayedClipDrawer.cs
Sewmina Dilshan 68183e5317 initial
2021-08-23 13:28:33 +05:30

21 lines
564 B
C#

using UnityEngine;
using UnityEditor;
namespace HQFPSWeapons
{
[CustomPropertyDrawer(typeof(DelayedSound))]
public class DelayedClipDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
position.x -= 6f;
EditorGUI.PropertyField(position, property, label, true);
}
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
{
return EditorGUI.GetPropertyHeight(property);
}
}
}