- Home /
Question by
Guynelk · Jun 20, 2017 at 07:52 PM ·
unity 5scripting problemscript.global variables
Playmaker: How to use and get variables from other visual scripting or C#?
Hi! I have Playmaker and Behavior machine and I want to send a global variable (Game object) to Playmaker. How I can do that please?
Comment
Answer by Varniukas · Feb 22, 2021 at 12:37 PM
Try this
1.use in the top of your code
using HutongGames.PlayMaker;
2.then you access globalvariable like this:
FsmString globalVar = FsmVariables.GlobalVariables.FindFsmString("my_string");
globalVar.Value = "Hello";
Your answer
Follow this Question
Related Questions
HELP! Scripts looks fine but doesn't respond? 1 Answer
UnityEngine.UI.dll 0 Answers
Non stopping point - counter 1 Answer
The spaceship acceleration script is good ? And how to use it with engine ? 0 Answers
Using a Burst in a script 3 Answers