I found this awhile back and saw it being used however i lost it and I cannot find it through keywords alone.
What is the script code to impose a component on a game object?
For instance, the second I attach script “NavMeshController”, I would like a NavMesh Component and a Collider to be attached as well.
I know you can check if these components exist and create a warning/error but how do I impose it?