This is a interview question that i got asked, I dint get the what it meant. Can you help me with this?
Which method in gameobject in unity which a component class to the gameobject?
This is a interview question that i got asked, I dint get the what it meant. Can you help me with this?
Which method in gameobject in unity which a component class to the gameobject?
I guess the question was / should have been
Which method in the GameObject class in unity can add a component class to the gameobject?
And the answer would be: AddComponent
Though since the original sentence is barely proper english it may be a translation issue or just bad english skills so it’s hard to tell if that was the actual question.