22 lines
583 B
C#
22 lines
583 B
C#
using System;
|
|
|
|
namespace Module.Inspector
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
|
public sealed class FilePath : DrawerPropertyAttribute
|
|
{
|
|
public readonly bool useAbsolute;
|
|
public readonly string extension = "*";
|
|
|
|
public FilePath(bool useAbsolute = false)
|
|
{
|
|
this.useAbsolute = useAbsolute;
|
|
}
|
|
|
|
public FilePath(string extension, bool useAbsolute = false)
|
|
{
|
|
this.extension = extension;
|
|
this.useAbsolute = useAbsolute;
|
|
}
|
|
}
|
|
} |