GetActiveScene() in iL2CPP

FlowCanvas Forums Support GetActiveScene() in iL2CPP

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2880
    spayke
    Participant

    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

    02.05 14:26:16.426 6546 6564 Error Unity   at System.Reflection.MonoField.SetValue (System.Object obj, System.Object val, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture) [0x00000] in <00000000000000000000000000000000>:0 

    02.05 14:26:16.426 6546 6564 Error Unity   at System.Reflection.FieldInfo.SetValue (System.Object obj, System.Object value) [0x00000] in <00000000000000000000000000000000>:0 

    02.05 14:26:16.426 6546 6564 Error Unity   at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0 

    02.05 14:26:16.426 6546 6564 Error Unity   at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Internal_Deserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type overrideConverterType) [0x00000] in <00000000000000000000000000000000>:0 

    02.05 14:26:16.426 6546 6564 Error Unity   at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Tr

    02.05 14:26:16.486 6546 6564 Error Unity NullReferenceException: Object reference not set to an instance of an object.

    02.05 14:26:16.486 6546 6564 Error Unity   at FlowCanvas.FlowNode.AssignSelfInstancePort () [0x00000] in <00000000000000000000000000000000>:0 

    02.05 14:26:16.486 6546 6564 Error Unity   at FlowCanvas.FlowGraph.InitSecondPass () [0x00000] in <00000000000000000000000000000000>:0 

    02.05 14:26:16.486 6546 6564 Error Unity   at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0 

    02.05 14:26:16.486 6546 6564 Error Unity   at NodeCanvas.Framework.Graph.LoadOverwrite (NodeCanvas.Framework.Internal.GraphLoadData data) [0x00000] in <00000000000000000000000000000000>:0 

    02.05 14:26:16.486 6546 6564 Error Unity   at NodeCanvas.Framework.GraphOwner.Initialize () [0x00000] in <00000000000000000000000000000000>:0 

    02.05 14:26:16.486 6546 6564 Error Unity (Filename: currently not available on il2cpp Line: -1)

     

    Unity 2019.4.19 | FlowCanvas 3.1.8

    #2892
    Gavalakis
    Keymaster

    Hello again,

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.