using UnityEngine; namespace EditorAttributes { /// /// Attribute to get the path of a file /// public class FilePathAttribute : PropertyAttribute { public bool GetRelativePath { get; private set; } public string Filters { get; private set; } /// /// Attribute to get the path of a file /// /// Get the relative path of the file /// Filter the files by the specified extensions public FilePathAttribute(bool getRelativePath = true, string filters = "*") { GetRelativePath = getRelativePath; Filters = filters; } } }