Reply To: FlowCanvas & NodeCanvas while in Editor Mode?

FlowCanvas Forums Support FlowCanvas & NodeCanvas while in Editor Mode? Reply To: FlowCanvas & NodeCanvas while in Editor Mode?

#2421
Enrique
Participant

Hello Gavalakis!

I am so sorry I never actually replied to your last post, I never got a notification about it, sorry!

I will have to look back but that does seem to be exactly what I need, I am just not sure why I struggled to have access to! If I recall correctly, I just couldn’t find a way to utilize GetComponent as a Node – as these references that I am talking about, I want to be able to set them via the FlowScript itself, as opposed to writing a script that has a FlowScript variable. Ultimately, I will have to dig into it and get back at you to let you know if there are any issues, now that you’ve clarified that the system does seem to allow for this.

Unfortunately, I haven’t been able to play with FlowCanvas (or Unity actually) ever since I created this last post. I am currently getting back into it though, and one thing I would definitely like to know (and please let me know if I should create another subject on the forum for this, as it is not related to the previous question), is how I could put both FlowCanvas and NodeCanvas on their own respective Assembly Definition Files.

At the moment I have created 2 ASMDEF files for each of Flow Canvas and Node Canvas, one that sits on the root folder of the plugins and one on the Editor folders of each plugin. I have also created a single ASMDEF file for the entire folder of  CanvasCore, which sits at its root folder too.

When I only had NodeCanvas on my project everything worked fine, however as soon as I imported FlowCanvas and created the ASMDEFs files for that specific plugin (The ASMDEF on the root folder and the one on its Editor folder), an issue emerged.

Unity console displays 22 errors,  these are as following (IMG 1):

There is 2-3 errors pointing out to the cast “string” to “UnityEngine.Texture” not being possible, but most of the errors are pretty much equivalent to the one highlighted on the image above, just different types that cannot be found.

When examining the lines of code in Visual Studio, I get the following message (IMG 2):

Sorry about the spanish text, I hadn’t realized my Visual Studio isn’t in English. Ultimately, it’s simply telling me there’s a conflict between the StyleSheet type provided by FlowCanvas and the one provided by my Assembly “CanvasCore – META – PPXAssembly”. However, I think my assembly files are correct! I am not sure why the ambiguity is popping up but since I am no expert at this I am sure I could be very wrong without noticing.

I will show you how I’ve set up the assembly files in case there’s something obvious that I am missing:

 

1) ASMDEF on the root folder of NodeCanvas (NCanvas1.png) :

2) ASMDEF on NodeCanvas’ Editor Folder (NCanvas2.png):

Aaaand I’m out of space for attachments on this reply so I’ll continue on the next one….

Attachments:
  1. 1.png

  2. 2.png

  3. NCanvas1.png

  4. NCanvas2.png