GenericUnityObjects
GenericUnityObjects copied to clipboard
Generic MonoBehaviour doesn't seems to work
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.
Steps to reproduce
- Import GenericUnityObjects sample: MonoBehaviour Example
- You will get a compilation error. Remove the line that has an error to remove the error.
- 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.
- 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)