SolidAlloy / GenericUnityObjects

Generic UnityEngine.Objects
Other
167 stars 13 forks source link

Generic MonoBehaviour doesn't seems to work #38

Open thewhitewayofdelight opened 1 year ago

thewhitewayofdelight commented 1 year ago

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 component. image
  4. Manually adding a Unit to the game object via "Add Component" button does not work (Unit does not show up, see picture above)

Notes

mnicolas94 commented 11 months ago

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.