Cysharp / Cysharp/MessagePipe

Inject] not working on (Strip Code Engine - High) with Unity VContainer

Open
#160 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
2k
Forks
133
PR merge metrics
No merged PRs in 30d

Description

[Inject] attribute works good on 6000.4.9 with strip engine code high but In 6000.5.6, Unity strips [Inject] attributes or something else, it doesnt work. I added all assemblies to link.xml. It just works on low strip.

I take this error.
MethodAccessException: Attempt to access method 'MessagePipe.ISubscriber.Subscribe' on type '' failed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Unity 6000.5.6 with Strip Code Engine set to High, then compare the result with 6000.4.9. Start by checking [Inject] handling and the existing link.xml configuration alongside the reported MethodAccessException for MessagePipe.ISubscriber. Done means injection and subscription work under High stripping without the exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.