Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Resolved entities pre.15 unable to save prefab

Discussion in '2022.2 Beta' started by spinaljack, Dec 6, 2022.

  1. spinaljack

    spinaljack

    Joined:
    Mar 18, 2010
    Posts:
    992
    After updating my entities package to pre.15 I started getting this error:

    Code (CSharp):
    1. Error while saving Prefab: 'Assets/Resources/My Player Avatar.prefab'. You are trying to save a Prefab that contains the script '', which does not derive from MonoBehaviour. This is not allowed.
    2. Please change the script to derive from MonoBehaviour or remove it from the GameObject 'My Player Avatar'.
    This is a regular game object and I've got scripts that derive from plugins in the asset store and obviously wasn't an issue before.

    EDIT:
    It was actually an issue with the plugin. You can delete this thread.
     
    Last edited: Dec 6, 2022
    TreyK-47 likes this.