This guide goes through setting up a Unity 2019 project with Mixed Reality Toolkit (MRTK) and the new XR plugins to work with HoloLens 1. The guide was made specifically for the following software versions, and may or may not apply to other versions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("error", (event) => { | |
const dataToSend: Record<string, string> = { | |
'entry.<>': event.timeStamp.toString(), | |
'entry.<>': event.message, | |
'entry.<>': event.filename, | |
'entry.<>': event.lineno.toString(), | |
'entry.<>': event.colno.toString(), | |
'entry.<>': event.error | |
}; | |
fetch('https://docs.google.com/forms/d/e/<>/formResponse', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AssetPostprocessor event function: | |
private static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, | |
string[] movedFromAssetPaths, bool didDomainReload) | |
ObjectFactory.componentWasAdded | |
Undo.postprocessModifications | |
EditorApplication.delayCall | |
DidReloadScriptsAttribute | |
InitializeOnLoadAttribute | |
EditorSceneManager.activeSceneChangedInEditMode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WaitForCoroutines: MonoBehaviour | |
{ | |
private void Start() | |
{ | |
StartCoroutine(StartCoroutines()); | |
} | |
private IEnumerator StartCoroutines() | |
{ | |
return Enumerable.Range(0, 10).Select(i => StartCoroutine(Foo(i * 100))).ToList().GetEnumerator(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CoroutineTestBehaviour: MonoBehaviour | |
{ | |
private void Start() | |
{ | |
StartCoroutine(Coroutine1()); | |
} | |
private IEnumerator Coroutine1() | |
{ | |
yield return StartCoroutine(Coroutine2()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class CharacterController2D : MonoBehaviour | |
{ | |
public float magnitude = 1; | |
private Rigidbody2D _rigidbody; | |
// Start is called before the first frame update | |
void Start() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. contents:: | |
========= | |
Requirements | |
------------ | |
- Python 3.7+ | |
- Django 2.2+ [1]_ | |
- database software (We use mariadb/mysql, but Django is configurable with pretty much any database software. | |
- mysqlclient [1]_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clc; clear; close all; | |
jointDensity = [ | |
325 338 78 | |
338 169 0 | |
78 0 0]/1326; | |
x_j = 0:2; | |
y_i = 0:2; |