うにてぃブログ

主にUnityとC#に関する記事を書いていきます

2020-08-02から1日間の記事一覧

【Unity】Asset のパスを表示する CustomAttirbute

using UnityEngine; public class PathAttribute : PropertyAttribute { } using UnityEditor; [CustomPropertyDrawer(typeof(PathAttribute))] public class PathAttributeDrawer : PropertyDrawer { public override void OnGUI(Rect position, Serialized…