Is there any documentation for Unity’s exception handling? My try-catch code does not seem to be working.
try {
PathTo = PFHelper(transform.position, pos, PathFindIterations);
}
catch (err) {
print(err.message);
PathTo = new Array(transform.position);
}
This code gives me the error:
Assets/Scripts-control/EnemyMovement.js(181) error BCE0120: ‘System.Exception.message’ is unaccessible due to its protection level. (Filename: Assets/Scripts-control/EnemyMovement.js Line: 181)