Search Unity

Question EditorCoroutines isnt exported as dependency

Discussion in 'Editor & General Support' started by JacoStudios, Sep 10, 2022.

  1. JacoStudios

    JacoStudios

    Joined:
    Jul 30, 2022
    Posts:
    1
    Hi, im creating a custom unity package.

    My package uses EditorCoroutines https://docs.unity3d.com/Manual/com.unity.editorcoroutines.html and when I export my package and then import in to an empty project I get this compiler error:
    error CS0234: The type or namespace name 'EditorCoroutines' does not exist in the namespace 'Unity'

    Any ideas how I include the EditorCoroutine as a dependency for my custom package?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    Do you mean export it as a .unitypackage, the "old" package way? If so, that has zero idea of dependencies that come from an external package. You would need to make sure that package name gets added to the Package Mangler as any other package needs to be.