I’m thinking of adding an optional “inView” parameter to the following two API methods:
EntityScriptingInterface::findEntities(const glm::vec3& center, float radius) EntityScriptingInterface::findEntitiesInBox(const glm::vec3& corner, const glm::vec3& dimensions)
Setting inView to true would filter the results to return only entities that are currently in view.
… Unless there’s a better way to get a list of entities in view?