dbrizov / NaughtyAttributes

Attribute Extensions for Unity
MIT License
4.47k stars 463 forks source link

Can't add generic script on object #370

Closed v-Demin closed 1 year ago

v-Demin commented 1 year ago

Unity 2022.3.4f1, NaughtyAttributes 2.1.4, it may be not NA issue at all

When creating any script with a generic in a project that has Naughty Attributes, it becomes impossible to add it to the object - "The script is an editor script".

If you add the script first, and then add a generic to it, the errors "The target object is null. Check for missing scripts."

script path: Assets/Scripts/Common/NewBehaviourScript.cs

image image image

v-Demin commented 1 year ago

My bad, NA just reacting on wrong unity behavior this way. Can you delete it?