I’m writing some automation in the editor and would like to have it automatically Debug.Log the items that are getting added to a list. I could go line by line and do this prior to my array but that would be tedious as it’s thousands of lines. Here is what I have thought up:
List<string> _convertLog = new List<string>();
List<string> convertLog
{
get
{
return _convertLog;
}
set
{
_convertLog = value;
Debug.Log(value);
}
}
However its also getting used like this:
CB_COMP_vThirdPersonController(_copiedPlayer, ref convertLog);
That’s throwing errors on me:
A property or indexer may not be passed as an out or ref parameter
What’s the best way to do this?