microsoft / mixed-reality-extension-sdk

The Mixed Reality Extension SDK enables developers to build 3D world extensions for AltspaceVR, using Node.JS.
MIT License
142 stars 61 forks source link

Feature Request: Access AltspaceVR Space Editor placed entities #54

Open sorenhan opened 5 years ago

sorenhan commented 5 years ago

If I place a number of space components in a world, I'd want to be able to access and modify them from within my MRE.

Note that it needs to be able to restore space components when user reenters the space or stops/restarts the MRE. One possible implementation is: In the space editor assets are associated with the MRE (or tagged as Used By MRE). When the MRE is in isPlaying state, the original space components are hidden from the scene, and when MRE stops playing/is removed, the original assets are unhidden. the MRE itself could need to call CreateFromLibrary with a custom parameter, and it would clone all of the associated hidden space components.

stevenvergenz commented 5 years ago

I don't think MREs should be able to control any/all space components. Some things are security-sensitive, like browsers and teleporters. Certainly some are easy, but not all. And we'd have to bypass the built-in synchronization that Worlds offers.

sorenhan commented 5 years ago

Agree. And yes, it would have to be a way to temporarily hide the Worlds-based entities and create MRE-owned entities, so it doesn't conflict with the world functionality..

willneedit commented 5 years ago

It might be a stretch, but the security considerations could be mitigated if it is possible to explicitely define which properties of Altspace Space Editor objects would be accessible from an MRE, and maybe which MRE. For example, a web browser may be set to allow being hidden/unhidden on a MRE's behest, but not having its URL changed.

Of course that would require a boatload of new properties to be managed for the Space Editor items.