Search Unity

Question Cannot set script execution order of class derived from abstract class derived from MonoBehaviour

Discussion in 'Editor Workflows' started by Edvard-D, Jan 8, 2023.

  1. Edvard-D

    Edvard-D

    Joined:
    Jun 14, 2012
    Posts:
    129
    Hey all!

    I'm having trouble with setting the script execution order of two of my scripts. I have an abstract base class that derives from MonoBehaviour, and then two classes that derive from and implement the abstract class. I need to set the script execution order of these two derived classes, but only the abstract class is showing up in the list of scripts I can add. I tried setting the execution order of the abstract class thinking maybe it would affect the derived classes too, but it's not working. I've tried searching around but haven't come across anything similar online.

    Any thoughts on what might be going on and how to resolve it?

    EDIT: I figured it out! Both of the classes were named the same thing, but in different namespaces. Evidently this isn't allowed and they need to have unique names.
     
    Last edited: Jan 8, 2023