Sorry for the double-post (also wrote about this in the Unity forum thread), but a little but frustrated here.
I’m having some trouble getting FlowCanvas to work on iOS when using custom classes. I’ve added the class to the list of preferred types, and clicked the button to generate the AOTClasses.cs and link.xml files. There’s an XML error being generated, but I think I’m fixing it by removing the comma added on the second row, and adding the closing </assembly> at the end.
Here’s the flow script i’m testing with:
The SendEventWhenFound class is derived from MonoBehaviour and has a static event called OnTracking.
Whenever I run it I get this error:
1
2
3
4
5
NullReferenceException:Anullvalue was found where an objectinstance was required.
at System.Reflection.EventInfo.CreateAddEventDelegate(System.Reflection.MethodInfo method)[0x00000]in<filename unknown>:0
at System.Reflection.EventInfo.AddEventHandler(System.Objecttarget,System.Delegatehandler)[0x00000]in<filename unknown>:0
at FlowCanvas.Nodes.CSharpAutoCallbackEvent.OnGraphStarted()[0x00000]in<filename unknown>:0
at NodeCanvas.Framework.Graph.StartGraph(UnityEngine.Component agent,IBlackboard blackboard,Boolean autoUpdate,System.Action
1 callback) [0x00000] in <filename unknown>:0
at NodeCanvas.Framework.GraphOwner.StartBehaviour () [0x00000] in <filename unknown>:0
at System.IComparable1[T].CompareTo (.T other) [0x00000] in <filename unknown>:0
at System.IComparable1[T].CompareTo (.T other) [0x00000] in <filename unknown>:0
at System.IComparable1[T].CompareTo (.T other) [0x00000] in <filename unknown>:0
at System.IComparable1[T].CompareTo (.T other) [0x00000] in <filename unknown>:0
)`
FlowCanvas is just a blessing for certain workflows, and I would love to have this up and running on iOS.
I am really sorry, but apparently I completely missed your post, both here as well as the Unity forums 🙁 I don’t know how I managed that.
Unfortunately, there is currently a limitation in using C# event nodes with AOT platforms like iOS is, which I am trying to resolve.
Using UnityEvents (along with the relevant UnityEvent Nodes) instead of C# events, should though work in iOS.
Can you please try use a UnityEvent instead and let me know if that works for you.
Thank you and once again I am sorry for the late reply.
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.