Find variable in another script using a string

Is it possible to access a variable in another script by using a string in, say a function argument?

like:

//Script 1

string Test1;



//Script 2

void FindVariable(string StringToFind){
    //Find the variable
}

Sorry to be a dick, but I can’t imagine you’ve chosen the best way to do things.

In general, you want to use as few strings as possible in your code. They’re hard to track down, and they won’t throw errors if you misspell them, meaning the game will be broken and you won’t know why.