If I use try-catch on my TS script, I only receive the message “TypeError: Cannot set property ‘spriteFrame’ of null”. I need the full error message for reporting to Crashlytics.
Does anyone have an idea about this situation?
Thank you
Hi, thank you very much for your response.
I’ve already tried that, but the code doesn’t seem to catch errors like the one mentioned: TypeError: Cannot set property 'spriteFrame' of null.
In my implementation, I simply need to call recordException like this:
public void recordException(String message) {
crashlytics.recordException(new Exception(message));
}
and ensure that you’ve set setCrashlyticsCollectionEnabled to true in onCreate .