Skip to content

Conversation

dubois
Copy link

@dubois dubois commented Dec 4, 2019

This overlaps #18 and addresses #9. This approach differs in that it uses a Unity-provided package for scheduling coroutines at edit time. It also includes worked examples of how to run async unit tests.

It requires that end users install the package com.unity.editorcoroutine. If the end user is using Unity 2018 or below, they must also manually define HAVE_EDITOR_COROUTINES. In Unity 2019 and above, the define is handled automatically by the included .asmdef file.

If the package com.unity.editorcoroutine is installed,
AsyncCoroutineRunner gains the ability to work at edit time.

In Unity 2019.1 and above, no additional setup is needed.
Otherwise, the symbol HAVE_EDITOR_COROUTINES must also be
manually defined.

Includes unit test.
Addresses part of modesttree#9
Includes sample unit test showing that "await" works at edit time.

Fixes modesttree#9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant