Forum Discussion
6 Replies
- PigeonNo12Partner
Entity Arrays props are not available in Desktop Editor creation, only in VR. However, if you want to get a list of entities very quickly, you can use the World.getEntitiesWithTags. Link to the API doc: https://developers.meta.com/horizon-worlds/reference/2.0.0/core_world
- InaCentaurMember
the docs mention that is an expensive operation though
- PigeonNo12Partner
Great observation. It can be very taxing if you do it very frequently, it's ok if you only do it once. As anything with performance, it's always good to know what alternatives are available. Depending on what other interactions are running in your world at the time, you might have the ability of running operations like getting entities with tags.
- jakub.terczynskiHonored Guest
It sounds like it is not a decent solution, but a workaround that is also expensive and not what a proper solution should look like. Why is it only available on VR pseudo code-like thing?
- InaCentaurMember
getTags is limited also only to the hierarchy rezzed objects and not objects in my assets?
- PigeonNo12Partner
Hierarchy entities only