Reply To: Shared Preferred Types

NodeCanvas Forums General Discussion Shared Preferred Types Reply To: Shared Preferred Types

#14590
Gavalakis
Keymaster

Hey,

The way I am going to handle this for the next version is to automatically read the first “.typePrefs” file found in any “Resources” folder and automatically load the types in that file. Also changes you make will automatically be written in that file (if it exists) as well.
As such you will only need to export the types list once and save that file into a “Resources” folder. From that point and forward, it will be used automatically.

Regarding making the generation automatic as part of the build process, I am not sure about this yet. I will have to see whether there is a suitable unity callback I can use for that first.

Regarding automatically detecting the types that are needed, one way for that that I was thinking about, is to add a function in the graph editor toolbar, which will scan the graph for types used and add them in the preferred types list. This will of course need to be done per-graph, but it’s still better than manually searching through the graph 🙂

Let me know what you think.
Thanks!

Join us on Discord: https://discord.gg/97q2Rjh