How to store/hold some data in ModelEntity/Entity?

I have a requirement to hold some data in ModelEntity/Entity and show as a info when user tap on ModelEntity/Entity, Currently I'm doing this by assigning on name property because I've not found any property to store/hold data and it's not a perfect way to do and at some point it's falling because 3d model has it's own name and it replacing my stored/hold data by 3d model name, then user getting wrong info.

then which is a perfect way to hold/store data in ModelEntity/Entity?

You could create a custom component containing your data (https://developer.apple.com/documentation/realitykit/component) and assign it to your entity. Then on tap check if such a component is available and read/display the data. Alternatively you could also subclass Entity and store some data within that custom class.

How to store/hold some data in ModelEntity/Entity?
 
 
Q