Renamed all attributes and drawers to have postfix of either Attribute or AttributeDrawer
This commit is contained in:
parent
81bac32538
commit
dc15bfec81
161 changed files with 265 additions and 265 deletions
22
Runtime/Drawers/FilePathAttribute.cs
Normal file
22
Runtime/Drawers/FilePathAttribute.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class FilePathAttribute : DrawerPropertyAttribute
|
||||
{
|
||||
public readonly bool useAbsolute;
|
||||
public readonly string extension = "*";
|
||||
|
||||
public FilePathAttribute(bool useAbsolute = false)
|
||||
{
|
||||
this.useAbsolute = useAbsolute;
|
||||
}
|
||||
|
||||
public FilePathAttribute(string extension, bool useAbsolute = false)
|
||||
{
|
||||
this.extension = extension;
|
||||
this.useAbsolute = useAbsolute;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue