Skip to content

Conversation

@c3-hoge-fuga-piyo
Copy link
Contributor

@c3-hoge-fuga-piyo c3-hoge-fuga-piyo commented Jan 18, 2024

Modified the code to use static anonymous functions to prevent unintended captures.

Additionally, this ensures that optimizations for static anonymous functions are applied consistently across different environments.

  • Some anonymous functions could not be made static as the state passed to BindWithState must be a reference type.
  • Static anonymous functions are supported starting from Unity 2021.2

@nuskey8 nuskey8 merged commit 0f757ee into annulusgames:main Jan 18, 2024
@c3-hoge-fuga-piyo c3-hoge-fuga-piyo deleted the static-anonymous-functions branch January 19, 2024 00:34
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.

2 participants