How to use the @microsoft/mixed-reality-extension-sdk.AssetContainer function in @microsoft/mixed-reality-extension-sdk

To help you get started, we’ve selected a few @microsoft/mixed-reality-extension-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / mixed-reality-extension-sdk / packages / functional-tests / src / app.ts View on Github external
constructor(private _context: MRE.Context, private params: MRE.ParameterSet, private baseUrl: string) {
		this.assets = new MRE.AssetContainer(_context);

		this.context.onStarted(() => {
			this.setupShared();
			if (this.params.test === undefined) {
				this.menu.show();
			} else {
				this.activeTestName = this.params.test as string;
				this.activeTestFactory = Factories[this.activeTestName];
				this.setupRunner();
			}
		});
		this.context.onUserJoined((user) => this.userJoined(user));
		this.context.onUserLeft((user) => this.userLeft(user));
		this.backgroundMaterial = this.assets.createMaterial('background', {
			color: BackgroundColor
		});
github microsoft / mixed-reality-extension-sdk-samples / samples / chess-game / src / app.ts View on Github external
constructor(private context: Context, private baseUrl: string) {
		this.assets = new AssetContainer(this.context);
		this.context.onStarted(this.started);
		this.context.onUserJoined(this.userJoined);
	}

@microsoft/mixed-reality-extension-sdk

The Mixed Reality Extension SDK enables developers to build 3D world extensions for AltspaceVR, using Node.JS.

MIT
Latest version published 4 years ago

Package Health Score

48 / 100
Full package analysis