generated from OmiyaGames/template-unity-package
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadOnlyAttribute.cs
54 lines (53 loc) · 1.64 KB
/
ReadOnlyAttribute.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using UnityEngine;
namespace OmiyaGames
{
///-----------------------------------------------------------------------
/// <remarks>
/// <copyright file="ReadOnlyAttribute.cs">
/// Code by It3ration from Unity Answers:
/// http://answers.unity3d.com/questions/489942/how-to-make-a-readonly-property-in-inspector.html
/// </copyright>
/// <list type="table">
/// <listheader>
/// <term>Revision</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>
/// <strong>Date:</strong> 10/1/2014<br/>
/// <strong>Author:</strong> It3ration
/// </term>
/// <description>
/// Initial version.
/// </description>
/// </item>
/// <item>
/// <term>
/// <strong>Version:</strong> 0.1.0-preview.1<br/>
/// <strong>Date:</strong> 3/25/2020<br/>
/// <strong>Author:</strong> Taro Omiya
/// </term>
/// <description>
/// Converted the class to a package.
/// </description>
/// </item>
/// <item>
/// <term>
/// <strong>Version:</strong> 0.1.4-preview.1<br/>
/// <strong>Date:</strong> 5/27/2020<br/>
/// <strong>Author:</strong> Taro Omiya
/// </term>
/// <description>
/// Updating documentation to be compatible with DocFX.
/// </description>
/// </item>
/// </list>
/// </remarks>
///-----------------------------------------------------------------------
/// <summary>
/// Makes a field read-only in the Unity editor with [ReadOnly].
/// </summary>
public class ReadOnlyAttribute : PropertyAttribute
{
}
}