Skip to content

Commit 4cac61d

Browse files
committed
Add HideInTypeMenu example
1 parent 6269f7f commit 4cac61d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Assets/Example/Example.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ public Grape ()
4242
}
4343
}
4444

45+
[Serializable]
46+
[HideInTypeMenu]
47+
public class Banana : Food
48+
{
49+
public Banana ()
50+
{
51+
name = "Banana";
52+
kcal = 100f;
53+
}
54+
}
55+
4556
public class Example : MonoBehaviour
4657
{
4758

0 commit comments

Comments
 (0)