You can just store a reference to the entity within your ViewModel and then modify the entity within it.
Quick example here:
http://github.com/thilojaeggi/ResizableCube/
Topic:
Graphics & Games
SubTopic:
RealityKit
Tags: