The left-Hand side of the assignment must be a variable, a property or an indexer

Hi, I have a proble with C# The console says: “The left-Hand side of the assignment must be a variable, a property or an indexer”

my code is:

  • if( canvasResultado.SetActive=(true)){
  • notificationRecord.SetActive(true);
  • }

try this:

if(canvasResultado.activeInHierarchy==true){
notificationRecord.SetActive(true);
}
1 Like

thanks so much :slight_smile: