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

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

Hi @thewhitewayofdelight , have you solved this? I'm using Unity 2022.3.5f1 and i have the same problem. Also, I can't create GenericScriptableObject implementations with [CreateGenericAssetMenu] attribute since the option doesn't show up in the create context menu. Assembly Version Validation is deprecated according to the documentation so I cannot change it either.

mnicolas94 avatar Nov 24 '23 16:11 mnicolas94