Hello,
I have a requirement on my game to change the raycast-ability of a TextMeshProUGUI at runtime, both false and true, however setting it to either has no effect on it. Although the boolean tick changes on the inspector for the object, there is no actual effect in the game, it remains with the behavior it had previously.
The code is simple:
textMesh.raycastTarget = true;
Changing it directly via inspector, by ticking it, at runtime works as expected.
Is there any after-call I have to make after changing the raycast for it?
Cheers