Quote:
myRenderer.enabled = !myRenderer.enabeld;
Two things:
1) C# is case-sensitive. Assuming the class you're referencing follows the standard naming guidelines, the property is most likely called
Enabled
, not
enabled
.
2) It's highly unlikely that the class will contain two
bool
properties called
enabled
and
enabeld
. Correct the typo so that you're using the correct property name.