how can i change a game object to another one?


i have 3 game objects, A, B and C on c#

when i can click on A i want to change the game object B to C.

Depending on your application you can

  • Disable, move, reactivate
  • Destroy and instantiate
  • Remove all components, then add new ones