Advertisement
Pro_Unit

PropertyLineDrawer

May 4th, 2023
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. using UnityEditor;
  2.  
  3. using UnityEngine;
  4.  
  5. namespace Game.Utilities
  6. {
  7.     public class PropertyLineDrawer : IRectLineDrawer
  8.     {
  9.         private readonly SerializedProperty _property;
  10.  
  11.         public PropertyLineDrawer(SerializedProperty property) =>
  12.             _property = property;
  13.  
  14.         public void Draw(Rect position) =>
  15.             EditorGUI.PropertyField(position, _property);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement