1
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MuHua {
|
||||
/// <summary>
|
||||
/// 使字段在Inspector中显示自定义的名称。
|
||||
/// </summary>
|
||||
public class CustomLabelAttribute : PropertyAttribute {
|
||||
public string name;
|
||||
|
||||
/// <summary>
|
||||
/// 使字段在Inspector中显示自定义的名称。
|
||||
/// </summary>
|
||||
/// <param name="name">自定义名称</param>
|
||||
public CustomLabelAttribute(string name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user