- Home /
Access variables from another script
Greetings,
I'm aware this is an quite frequent issue already much debated but despite that I still haven't found a solution for my particular problem. I need to access couple of variables from ScriptA while inside ScriptB.
The object/script structure is the following:
DynamicControllers(Parent) - DS1 (with DynamicController.cs) - DS2 (with DynamicController.cs) - ... (with DynamicController.cs) - DS8 (with DynamicController.cs)
Homography (Script: Homography.cs)
Problem: Inside DynamicController.cs, there are two variables that I need to access from the Homography.cs. I tried several already proposed solutions, like setting the variables to Static but with no luck, it doesn't seem to be a solution for this case.
Any help is greatly appreciated.
Nuno