have a specific issue.. need to access THIS array thru the script and make changes.
Thanks in advance!
Answer by Honorable-Chow
Mar 08 at 09:16 AM
I couldn't get the Controls property to accept game objects for the array. I created a property directly in a script. After that I was able to drag items from my scene to populate the array. I then move the items into the FSM Array when the scripts starts.
public GameObject Waypoints;
// Use this for initialization
private void Start()
var array = FsmVariables.GlobalVariables.GetFsmArray("PossibleWaypoints");
for (var i = 0; i < Waypoints.Length; i++)
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
4 People are following this question.
Multiple Cars not working
Distribute terrain in zones
Problem with Accessing Variables from Other Scripts in c#.
Error CS0029 Help? (Screenshot of Exact Error)
Only instantiate GameObjects with a certain tag from an array