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
| - set this registry value: https://www.windowscentral.com/how-to-unlock-mixed-reality-settings-windows-10 | |
| - do the powershell & group policy settings here: https://docs.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development | |
| - reboot computer | |
| - can also run windows update and update GPU drivers | |
| // ERRORS (if didnt do those steps above) | |
| "Couldn't install Windows Mixed Reality" |
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
| // Standard shader with triplanar mapping | |
| // https://github.com/keijiro/StandardTriplanar | |
| Shader "Standard Triplanar Slots" | |
| { | |
| Properties | |
| { | |
| _Color("", Color) = (1, 1, 1, 1) | |
| _MainTex("", 2D) = "white" {} |
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
| // https://stackoverflow.com/questions/59971550/transmitting-the-video-to-youtube-streaming-api-v3-with-unity | |
| { | |
| private Thread thread; | |
| IEnumerator Start() | |
| { | |
| // GOOGLE API KEYS | |
| var clientId = ""; | |
| var clientSecret = ""; | |
| var code = ""; // LEAVE IT |
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
| Shader "Unlit/VFace" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { | |
| Tags { "RenderType"="Transparent" } | |
| Cull Off |
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
| // https://forum.unity.com/threads/fit-object-exactly-into-perspective-cameras-field-of-view-focus-the-object.496472/#post-3229700 | |
| float cameraDistance = 2.0f; // Constant factor | |
| Vector3 objectSizes = bounds.max - bounds.min; | |
| float objectSize = Mathf.Max(objectSizes.x, objectSizes.y, objectSizes.z); | |
| float cameraView = 2.0f * Mathf.Tan(0.5f * Mathf.Deg2Rad * camera.fieldOfView); // Visible height 1 meter in front | |
| float distance = cameraDistance * objectSize / cameraView; // Combined wanted distance from the object | |
| distance += 0.5f * objectSize; // Estimated offset from the center to the outside of the object | |
| camera.transform.position = bounds.center - distance * camera.transform.forward; |
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
| ERRORS: | |
| "ipad activation could not be completed" | |
| "we’re sorry, we are unable to continue with your activation at this time." | |
| SOLUTION | |
| - switch to another wifi, | |
| - connect to pc, install itunes from microsoft store | |
| - login to itunes with account (not sure if needs to be original account) | |
| - itunes, help, diagnostics (do network tests) | |
| - keep clicking try again on ipad |
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
| // from package https://assetstore.unity.com/packages/tools/terrain/tom-s-terrain-tools-527 | |
| using UnityEngine; | |
| using UnityEditor; | |
| namespace TTT | |
| { | |
| public class PlaceOnTerrain : ScriptableObject | |
| { |
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
| // https://forum.unity.com/threads/f-for-frame-selected-why-does-it-zoom-out-so-much.502796/#post-5291352 | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class FocusReplacer | |
| { | |
| [MenuItem("Edit/Focus Selected _f")] | |
| static void Focus() | |
| { | |
| if (Selection.activeObject == null) |
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
| // https://unitycoder.com/blog/2019/12/09/using-raylib-dll-in-unity | |
| using UnityEngine; | |
| using Raylib; | |
| using rl = Raylib.Raylib; | |
| using Color = Raylib.Color; | |
| public class RaylibTest : MonoBehaviour | |
| { | |
| void Start() |