0
Answered

Bolt V2 Access variables on another game object.

Richard Rae 6 months ago updated 6 months ago 2

I have an array of GameObjects on my player object,how would I iterate through the array to access bolt public variables on the other gameobjects.Thanks in advance .

Bolt Version:
V2
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Answered

Hi Richard,

You can use the Is unit to check if a GameObject has the Bolt component of the type you need, and if so, convert it to that. This will let you drag out from the second output of the is unit and access your public class variables.

Thank you,I didn’t know this unit existed,is there anywhere that you can view a full list of units(and what they do) for both Bolt or Bolt2?