Gneedle.Inject
com.gatongone.gneedle.inject is an OpenUPM Unity package. Gneedle.Inject is the weaver of Gneedle: it rewrites the IL of an assembly through Mono.Cecil and weaves a body into it from a template, which is an ordinary C# method. Around advice keeps the body which the method already held and lets the template proceed into it, either with a signature which the template names or with the arguments which the template itself was given. The template reaches the members of the type it is woven into through the placeholders This, Base, Object, Static and Proceed, and names a generic parameter of that type through the tokens T_0 to T_20 and M_0 to M_20. A template which is written as a lambda may capture what it is written among, and what it captured is written into the assembly which is woven as the value itself. The weaver is carried as a plugin of the project, so that the assemblies of the project can be woven by a tool of your own or by the aspect weaver beside this package.
Install this package from the OpenUPM scoped registry with the instructions on this page, or use openupm-cli to update Packages/manifest.json.
Repository: https://github.com/Gatongone/Gneedle.
Owner: Gatongone.
Topics
Related Unity Packages
- Gneedle.Aspect com.gatongone.gneedle.aspect
- LLMUnity ai.undream.llm
- Blockade Labs SDK com.blockadelabs.sdk
- Genesis com.doji.genesis
- GDX com.dotbunny.gdx
- Toolnity Map Generator com.dteruel.toolnity.mapgenerator
For registry setup problems, see Unity scoped registry troubleshooting.