I want to do a similar cooking meal like in the game "Overcooked". Where do you cook a variety of dishes.

enter image description here

I can not grasp the idea of ​​how it is implemented or where to start. You take an object (vegetable), interact with the necessary "changers" (cutting, cooking). At the end of the process - you replace the model and go further?

What do I need to know? What to use? What to google?

I will be glad to any help.


There are basically two ways to do this.

  1. When you replace a "raw onion" with a "chopped onion" you Destroy the "raw onion" game object and then Instantiate a new "chopped onion" game object.
  2. It's actually the same game object all the time, from being delivered to getting served. It just changes its appearance. You can do that by replacing the .sprite of the SpriteRenderer of the object or by using an Animator to transfer it from one appearance to another.
  • \$\begingroup\$ SpriteRenderer.sprite it's just for images, right? \$\endgroup\$ – Artik Slayer Jan 28 '19 at 21:45
  • 1
    \$\begingroup\$ @ArtikSlayer if you are going 3D, you can do the same by changing the MeshRenderers mesh value, to a new mesh. \$\endgroup\$ – TomTsagk Jan 29 '19 at 17:09
  • \$\begingroup\$ @TomTsagk what if my 3d object dosn't have Mesh Renderer component? Then I must add that component by myself? \$\endgroup\$ – Artik Slayer Feb 7 '19 at 14:40
  • \$\begingroup\$ @ArtikSlayer if your Unity GameObject has any 3D geometry, it should have a MeshRenderer. As far as I know, it's not possible to draw 3D meshes without it, except when doing something really customised, but that's another story. \$\endgroup\$ – TomTsagk Feb 7 '19 at 14:56
  • 2
    \$\begingroup\$ @ArtikSlayer on your second image, the object doesn't have a MeshRenderer, but if you search its children, one of them has it attached, together with the Mesh that gives it its shape. If you were to disable or remove that object, the parent wouldn't have any shape at all. \$\endgroup\$ – TomTsagk Feb 7 '19 at 15:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.