I have a line of code from someone else: something like...
public static bool ScreenToMapPosition (Vector2 ScreenCoord, out Int2 MapPosition)
Just to be clear, am I understanding this correctly?
When I call the function, it returns:
Returns the bool, true/false
ALSO returns the MapPosition?
This is the meaning of "out"?
So in effect, I enter a Int2 MapPosition just so I can have it given a new value?
Almost the same as
public static Int2 ScreenToMapPosition (Vector2 ScreenCoord)
{
Int2 MapPosition = //blah blah code code;
return MapPosition;
}