Search Unity

"The script class needs to derive from ScriptableObject..." ??

Discussion in 'Editor & General Support' started by malkere, Mar 26, 2019.

  1. malkere

    malkere

    Joined:
    Dec 6, 2013
    Posts:
    1,212
    Instance of xxx couldn't be created. The script class needs to derive from ScriptableObject and be placed in the Assets/Editor folder.

    I keep getting this on random things since upgrading to 2018.3.9. It doesn't happen until something errors and I leave play. Then anything with a custom inspector that I click on says "Multi-object editing disabled" and throws the above error, even basic Unity Terrains. A restart fixes the behavior.

    Any ideas?
     
  2. tgaldi

    tgaldi

    Joined:
    Oct 28, 2015
    Posts:
    102
  3. Domas_L

    Domas_L

    Unity Technologies

    Joined:
    Nov 27, 2018
    Posts:
    111
    tgaldi likes this.
  4. malkere

    malkere

    Joined:
    Dec 6, 2013
    Posts:
    1,212
    I still get this. 2018.4.23

    Instance of *** couldn't be created. The script class needs to derive from ScriptableObject and be placed in the Assets/Editor folder.
     
  5. malkere

    malkere

    Joined:
    Dec 6, 2013
    Posts:
    1,212
    @Domas_L
    I've come to notice that this only crops up when I switch build target to Linux. I work on Windows 10 but export my builds to both Win10x64 and Linuxx64. I just exported a hotfix, which resulted in switching back to Windows as the target, but now the majority of my scripts won't render in the editor showing the "The script class needs to derive from ScriptableObject" even though they are standard and in some cases very simple Monobehaviours.

    I've also noticed it crop up when a export results in me leaving the target platform as Linux and then quitting and coming back the next day still targetting Linux.

    Targeting windows and restarting fixes the problem.

    I'm running 2018.4.23
     
  6. Domas_L

    Domas_L

    Unity Technologies

    Joined:
    Nov 27, 2018
    Posts:
    111
    It's hard to say what could be causing this issue without having seen the setup - could you please submit a bug report with a small repro project for further investigation?
     
  7. BryceOwen31

    BryceOwen31

    Joined:
    Aug 15, 2023
    Posts:
    3
    I’m on version 2022.3.7f1 and I have the same issue.
     
    MrQuatra likes this.