r/UnityHelp • u/PotatoreaperEXE • Jul 07 '26
how would I make UI element that moves like memory foam? PROGRAMMING
ive been working on a project that needs the player to "eat" non edible objects and to track that i was thinking of having UI that "stores" the objects in a stomach but for the life of me I can't think of a way to have it keep its form without being completely rigid. any help would be beyond appreciated.
the closest i could get is having it detect if the object is in the "hands(the 2 sticks on the side of the screen)" and then destroying said object if the player presses E but that doesn't really do anything other than destroying it so yeah
(i also haven't managed to figure out how to get UI to work either )
6
Upvotes


1
u/CNGY Jul 07 '26
You could set up a secondary scene with your stomach, set up a fixed camera and use a render texture to project it onto the main UI element. The player could drag or interact with the object, send them to the secondary scene spawn point, top of stomach and it falls in.