Hey there @KarNakYT! Welcome to the community! So there’s a bunch of ways to pull this off. I’ll list a few from a high level point of view, and you can decide which sounds the best for you.
Disclaimer: Epic Games is not liable for anything that occurs outside of this domain. Follow any external links with care.
Best Practices:
-
Masking a material/texture with transparency out the more that’s eaten. Say every time the player eats a piece, more of the material/texture is masked out. You could do this with a pattern and move it based on parameters as well. An example of this in action: Unreal engine 5 material opacity mask beginner tutorial - YouTube
-
If your food needs to be way more complex, you could animate them like you would a character. If so I’ve seen Morph Targets being used. Morph targets are blend shapes if you use other software like Maya. Every time you take a bite, you blend down quickly to the next target and change the material as necessary. Example: Unreal engine 4 tutorial: How to use Morph targets from Blender - YouTube
Not so great practices:
- Making a separate mesh for each step and just replace the mesh each bite, or destroy added branches. This is cumbersome to do, albeit easy to pull off.
Let me know if you have any questions!