Skip to content

Commit

Permalink
Update summary
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Nov 26, 2021
1 parent 22af4d4 commit b163389
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Shared.Core/Utilities/CoroutineUtils.cs
Expand Up @@ -223,10 +223,10 @@ public static MethodInfo GetMoveNext(MethodBase targetMethod)
}

/// <summary>
/// Use to patch coroutines/yielding methods.
/// This will method automatically find the compiler-generated MoveNext method that contains the coroutine code and apply patches on that. The method you patch must return an IEnumerator.
/// Used to patch coroutines/IEnumerator methods and async UniTask methods.
/// This will method automatically find the compiler-generated MoveNext method that contains the coroutine code and apply patches on that. The method you patch must return an IEnumerator or an UniTask.
/// Warning: Postfix patches will not work as expected, they might be fired after every iteration. Prefix is practically the same as prefixing the entry method. It's best to only use transpliers with this method.
/// Note: When writing transpliers for coroutines you might want to turn off the "Decompiler\DecoDecompile enumerators" setting in DnSpy so that you can see the real code.
/// Note: When writing transpliers you might want to turn off the "Decompiler\Decompile enumerators/async" settings in DnSpy so that you can see the real code.
/// </summary>
/// <inheritdoc cref="Harmony.Patch(MethodBase,HarmonyMethod,HarmonyMethod,HarmonyMethod,HarmonyMethod,HarmonyMethod)"/>
public static MethodInfo PatchMoveNext(this Harmony harmonyInstance,
Expand Down

0 comments on commit b163389

Please sign in to comment.