unity set sorting layer in script code example
Example 1: unity change tag in script
gameObject.tag = "NewTagName"
Example 2: how to change the size of ui in script unity
_image.rectTransform.sizeDelta = new Vector2(width, height);
Example 3: storing custom objects in set c++
Add to Class template
bool operator< (const ClassName &other) const
{
return x < other.x;
}