handzlikchris / handzlikchris/FastScriptReload

[Workaround] Nested types used for generic are not patched

Open
#161 1 comment 0 reactions 0 assignees View on GitHub
workaround
Dominant language
C#
Stars
2.2k
Forks
167
PR merge metrics
No merged PRs in 30d

Description

```c#
Preserve]
public unsafe class CharacterSkillCreationSystem__Patched_: SystemMainThreadFilter
{
public struct Filter
{
...
}

public override void Update(Frame frame, ref Filter filter)
{
```

We can see that this Photon Quantum Pattern does not get rewritten correctly. Nested filter type should be patched so it does not conflict with the original one. (Or vice-versa)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Photon Quantum pattern shown in the issue, then trace the hot-reload rewriting logic for generic types that contain nested types. The fix is complete when the nested Filter type is patched consistently and no longer conflicts with the original type; add or run a regression check if the project has one.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
devtools, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.