#How do I make an if statement read the console?
1 messages · Page 1 of 1 (latest)
I'll fully answer this here
Thank you
So essentially
Application.logMessageRecieved += (msg,_,_) => {
if (msg.contains("explosion") {
Debug.Log("Hello");
}
};
Error CS0117 'Application' does not contain a definition for 'logMessageRecieved'
Thats the only error
I misspelled received
Alright, replace both underscores with a & b respectively
Ok I fixed the first error
I accidently type += twice
Second error fixed too
new error
What now?
Contains needs to be capitalized