fungus

Open full view…

Other type Variables is no use!

victorkin11
Mon, 19 Jun 2017 21:27:43 GMT

When you can create a lot of different type variables, color, gameobject, sprite, ..., but there is no way to set variables data using fungus in runtime, and no command can access this kind of variables! Am I missing something?

chrisgregan
Mon, 19 Jun 2017 21:39:44 GMT

You can use the other variable types in custom commands and event handlers, and other c# scripts that communicate with Fungus. You can also define your own variable types if you want to. This [tutorial video](https://www.youtube.com/watch?v=WFEGnS7MU74) might help.

victorkin11
Mon, 19 Jun 2017 21:45:38 GMT

But the point is if I using c# scripts, then I can use c# variable, there should be some fungus command able to access this kind of data, maybe I can use the color for text, maybe I can send massage to gameobject in fungus, if not, then I don't need fungus have this kind of variables, since I can't access this kind of data, just keep this data in c#, I think some command can improve to access this kind of variables, this will make fungus much more powerful! Anyway, Thank for your answer.

jdscogin
Thu, 22 Jun 2017 21:54:10 GMT

You can pass variables back and forth from Fungus to a C# Script. Define the flowchart in C# Script, then use the flowchart Get(what ever kind of variable string Int, float, object, transform...)l

victorkin11
Thu, 22 Jun 2017 22:10:04 GMT

I have do some work to make setvariable, callmethod, and "if" condition can use with gameobject variable. maybe later I will upload for whom want to try it.

jdscogin
Thu, 22 Jun 2017 22:20:01 GMT

Sure, I'll take a look.