15 lines
390 B
C#
15 lines
390 B
C#
|
|
using UnityEngine;
|
|||
|
|
namespace Invector
|
|||
|
|
{
|
|||
|
|
[System.AttributeUsage(System.AttributeTargets.Field, AllowMultiple = true, Inherited = true)]
|
|||
|
|
public class vReadOnlyAttribute : PropertyAttribute
|
|||
|
|
{
|
|||
|
|
public readonly bool justInPlayMode;
|
|||
|
|
|
|||
|
|
public vReadOnlyAttribute(bool justInPlayMode = true)
|
|||
|
|
{
|
|||
|
|
this.justInPlayMode = justInPlayMode;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|