Skip to main content

Local delegate function does not get called when used in a foreach loop

A local delegate function does not get called when used in a foreach loop (C# 7.0 feature).

images-small

This is likely due to a known bug in the Unity Playworks Plugin engine.

Possible solution:

  • Move the local function outside of the foreach loop, or outside of the parent function.

images-small