Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chat command ( /test ) to load sample assets #5979

Merged
merged 3 commits into from
Mar 9, 2023

Conversation

johnshaughnessy
Copy link
Contributor

@johnshaughnessy johnshaughnessy commented Mar 3, 2023

This chat command enables loading sample assets by name.

There are three types of assets: objects, scenes, and avatars.

  • Objects are loaded with the same options as the /add command.
  • The --scene flag changes the active scene.
  • The --avatar flag changes the active avatar.

Usage:

/test [--scene] [--avatar] [--resize] [--recenter] [--animate] [--no-menu] <AssetName>

Examples:

Load a sample asset as a media object:

/test Billboard

Change the scene:

/test --scene EnvironmentSettings

Change your avatar:

/test --avatar MorphAudioFeedback

Warning: Typos in the AssetName are not validated. Be careful not to change scenes to an nonexistent asset as doing so can create unrecoverable rooms.

@johnshaughnessy johnshaughnessy changed the title Add chat command (test) to load test assets Add chat command ( /test ) to load sample assets Mar 3, 2023
@pattersonbl2 pattersonbl2 temporarily deployed to smoke March 7, 2023 19:07 — with GitHub Actions Inactive
@pattersonbl2
Copy link
Contributor

Sending this PR for a spot check to QA to test functionality on all devices.

@netpro2k
Copy link
Contributor

netpro2k commented Mar 8, 2023

Since these are hardcoded to a specific set of assets we might just exclude the .glb for slightly more convenient typing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants