NOOB: Set variables of other gameObjects

Chris Hollands 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 3

Hi Guys I'm pretty new to Unity in general, trying to figure out how to set the variable of a game object from within a Graph. Fairly simple but I want to set a Variable of PLAYER1DEAD to True on a GAMECONTROLER object, from a graph set on the PLAYERCONTROLLER object. 

I know there are ways to do this differently in this instance, but I want to find out how it's possible to set variables and pass variables etc.

So far I've tried to set the target game object as a variable and then read that into the graph, and then send that as the target game object variable, but it's not picking up the list of variables from the target.

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

This is actually very easy and is working now. I thought it wasn't going to work as it wasn't bringing up the list of variables on the target game object, but I just typed it in and it works! Boom!

Hi Chris, glad you figured it out!