Skip to main content

FindEntityQuery

type FindEntityQuery =
| {
rtid: RTID;
}
| {
euid: UUID;
linkage: UUID[];
}
| {
euid: UUID;
}
| {
names: string[];
}
| {
mandatory_components: keyof ComponentsRecord[];
forbidden_components: keyof ComponentsRecord[];
};

Defined in: node_modules/@3dverse/livelink.core/dist/sources/EntityUtils.d.ts:63

Find entity query to find entities based on different criteria.

Type declaration

{ rtid: RTID; }

NameTypeDescription
rtidRTIDThe RTID of the entity to find.

{ euid: UUID; linkage: UUID[]; }

NameTypeDescription
euidUUIDThe EUID of the entity to find.
linkageUUID[]The exact linkage of the entity to find starting from the topmost linker.

{ euid: UUID; }

NameTypeDescription
euidUUIDThe EUID of the entity to find. No linkage is provided in this case. All entities with the same EUID are returned.

{ names: string[]; }

NameTypeDescription
namesstring[]The names of the entities to find.

{ mandatory_components: keyof ComponentsRecord[]; forbidden_components: keyof ComponentsRecord[]; }

NameTypeDescription
mandatory_componentskeyof ComponentsRecord[]The components that the entities must have.
forbidden_components?keyof ComponentsRecord[]The components that the entities must not have.