ONLY SOLUTION FOUND: multiple canvas, enable only one at a time:
switch (level)// zero is first, one is second etc…
{
case 1:
level1.SetActive(false);
level2.SetActive(true);
break;
case 2:
level2.SetActive(false);
level3.SetActive(true);
break;
case 3:
level3.SetActive(false);
level4.SetActive(true);
break;
}
Hi all,
Have a multi level game, want the level menu to show right text.
Have a menu with buttons, want to change only cue text on level.
tried many variation of “FindGameObjectWithTag” but it only returns active ones, but I want only one text rendered at a time. If I use layers, will be limited to 23 levels ( 8 for editor + 1 for Light) 32-9, and it’s not elegant.
Maybe with render on/off ? How would you do it ? made many searches and lectures to no avail…stock there.
My hyerachy:
Want to activate only one of the Text_Lx at a time…
PS: was easy to change Header text, only a digit, but others are many lines long…
TIA,
regards Robert
2021.3, VR, XR,