I’ve done some tests and normally the ContextMenu does work in the inheriting class but when you pass in another class (MyClass) then the Context menu no longer shows up, does anyone know why?
This is what my base class looks like:
public class ExtendedMonoBehaviour : MonoBehaviour
where TSelf : ExtendedMonoBehaviour
{
[ContextMenu(“Execute Test Function”)]
public void Test()
{
Debug.Log(“Test Function Executed”);
}
}
This is what the inheriting class looks like:
public class InheritingClass : ExtendedMonoBehaviour
{
[ContextMenu(“Execute Inheriting Class Function”)]
public void InheritingMethod()
{
Debug.Log(“Inheriting Class Function Executed”);
}
}
The context menu in the inheriting class shows up but the one in the base class does not