GenericUnityObjects icon indicating copy to clipboard operation
GenericUnityObjects copied to clipboard

Generic MonoBehaviour doesn't seems to work

Open thewhitewayofdelight opened this issue 2 years ago • 1 comments
trafficstars

Hi, I'm back again with an issue :D Hopefully you are fine :)

Summary

Generic MonoBehaviour doesn't show up in context menu of Add Component.

image

Steps to reproduce

  1. Import GenericUnityObjects sample: MonoBehaviour Example
  2. You will get a compilation error. Remove the line that has an error to remove the error.
  3. After no compilation error, notice that the "Archers Squad" game object as referenced by the README on the scene does not have a Unit<Archer> component. image
  4. Manually adding a Unit to the game object via "Add Component" button does not work (Unit<T> does not show up, see picture above)

Notes

  • Unity 2022.2.17
  • Windows 11
  • Assembly Version Validation is not changed (maybe not disabled) (I can't find the option on Unity 2022)

thewhitewayofdelight avatar Jun 19 '23 11:06 thewhitewayofdelight