'How do I modify the value of a dict in the form of "Dictionary<string, (float r , float g , float b )>"? [duplicate]
I was trying to modify a value inside my mCurrentSprite dictionary. The Problem is I get a error when I try to modify or set it by accessing it through the key string mPartName. How can this be fixed?
mCurrentSprite[mPartName].r -= 0.1f;
Error code: Cannot modify the return value of
Dictionary<string, (float r, float g, float b)>.this[string]because it is not a variable
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
