BaseUnityPlugin destroyed before first Frame Update! #827
-
What is HappeningSince the latest update of Angel Legion - Idle RPG all BepInEx BaseUnityPlugin Scripts get destroyed before the first frame update. My QuestionDoes anyone know about a 3rd Party component that detects BepInEx Scripts and deletes them? EnvironmentOS: Windows 11 How to ReplicateTry this simple Plugin:
And receive the following BepInEx Logs (Log Level Info!):
This happens as soon the game starts. Neither Start nor Update where called. Therewith, the Tester got destroyed before the Scene Tree was build. How could they do that? I am sure that all BepInEx Scripts are loaded to "DoNotDestroyOnLoad" such that they survive a Scene swap. I am still checking the source code of the game for a line that is greedily destroying all object. This is most likely the issue, but I can't find such thing. So again my Question, does anyone know about higher instances that could cause such behavior? PS: All instances in BepInEx.Bootstrap.Chainloader are NULL |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In the BepInEx.cfg, try setting: [Chainloader]
HideManagerGameObject = true |
Beta Was this translation helpful? Give feedback.
In the BepInEx.cfg, try setting: