Skip to main content
InaCentaur
Inspiring
May 4, 2025
Question

Entity Arrays in Properties?

  • May 4, 2025
  • 6 replies
  • 454 views

Is this possible - would be so convenient for assignment.. 

6 replies

PigeonNo12
Honored Contributor
May 6, 2025

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

Upcoming Events : Build with a Mentor: Custom UI Thursday 3/20 at 5:00 PM PT Register March calendar of all Mentor Workshops and Office Hours
InaCentaur
Inspiring
May 6, 2025

the docs mention that is an expensive operation though 

PigeonNo12
Honored Contributor
May 6, 2025

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.

Upcoming Events : Build with a Mentor: Custom UI Thursday 3/20 at 5:00 PM PT Register March calendar of all Mentor Workshops and Office Hours
InaCentaur
Inspiring
May 6, 2025

getTags is limited also only to the hierarchy rezzed objects and not objects in my assets?

PigeonNo12
Honored Contributor
May 6, 2025

Hierarchy entities only

Upcoming Events : Build with a Mentor: Custom UI Thursday 3/20 at 5:00 PM PT Register March calendar of all Mentor Workshops and Office Hours