I have the specific case that I have to enable / disable a component / monobehavior on a game object. Is there any solution for this? I didn't found anything useful and had to came up with my own solution. One of the key problems were, when I used the "GetComponent" unit the output was always the gameobject not the monobehavior / component which I looked up. And even if would have the correct type, I didn't found anything to update a component property. How do I do that?
For now I ended up with a helper class which finds the component and enables the monobehavior "enabled"-flag. Is there any proper solution for this? Did I missunterstood something? I have a coding background and really new to the visual scripting concept.
And within the code I have following:
((MonoBehaviour)gm.GetComponent(componentToFind)).enabled = true;
Thank you in advance for any suggestions!
Customer support service by UserEcho