Probably a bug(or i’m missing something again): when node GetActiveScene>GetBuildIndex nodes exist in graph, when built in iL2CPP, always gives this errors:
02.05 14:26:16.426 6546 6564 Error Unity TargetException: Non-static field requires a target
Somewhere in your log should be an error that looks like this:
“Attempting to call method ‘FlowCanvas.ValueOutput`1[[UnityEngine.SceneManagement.Scene, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]::.ctor’ for which no ahead of time (AOT) code was generated.”
Please find that line and (as described on your other post), you will need to add the type that is shown in bold above, in your Preferred Types editor and re–build the AOTClasses and link.xml files. In the example above the type is UnityEngine.ScenneManagement.Scene, but in your case it will be some other types at that same line log spot.
If you want please post the whole log so that I can pinpoint the type for you.
Thanks
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.