ย 
์์ชฝ ๋ฐฐ์ด skills์ ์ ์ฃผํฉ์์ ๋ถ์ด๊ณ ์ถ์๋ฐ ๋ญ๋ผ ์ณ์ผ ๋์ด
--------------------------------ํด๊ฒฐ --------
EditorGUI.Foldout ์์
public class Skills
{
ย ย public bool folded = true;
}
[CustomPropertyDrawer(typeof(Skills))]
public class skillInspector : PropertyDrawer
{
ย ย ย ย public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
ย ย ย ย {
ย ย ย ย ย ย ย ย ย bool asdf =ย property.FindPropertyRelative("isfold").boolValue;
ย ย ย ย ย ย ย ย ย ย asdf = EditorGUI.Foldout(typeRect, fold, label);
ย ย ย ย ย ย ย ย ย property.FindPropertyRelative("folded").boolValue = asdf;
ย ย ย ย ย }
}
๋๊ธ 0