Hi every one, I get stuck with this:
How can I get/set a variable value that’s in a script’s Array (List, Builtin Array, etc.).
The main idea is to use an editor script(lets call this main script) that put a script(data holder) in other script(game object with it) in a Builtin Array, List, etc. and then get/set any public variable using the main script.
//Main Script
for (n = 0; n < nScriptCount; n ++)
target.scriptList.Add(dataHolder);
target.scriptList[n].someValue = "Set value";
//Game Object Script
public var scriptList = new List.<MonoScript>();
//Data Holder
public var someValue : String;
Any help will be appreciated.