Instead of
GetComponent<OneOftheComponent>().enabled = false;
is it possible to use this one?
Destroy(GetComponent<OneOftheComponent>());
Instead of
GetComponent<OneOftheComponent>().enabled = false;
is it possible to use this one?
Destroy(GetComponent<OneOftheComponent>());
Hi,
Did you test your idea? Does it work? If so, it’s a solution.
See also:
Yes it is possible. But component will disappear.
If you use enabled = false you can later turn it on.
@Nina It was working great, but I wasn’t sure if I trigger future problems because of the destroy instead of enable / disable
@111100 I should think that. I appreciate for your answer
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.