I hereby claim:
- I am mrwellmann on github.
- I am mrwellmann (https://keybase.io/mrwellmann) on keybase.
- I have a public key ASD9wy4mmkqlMKNTD_QhGBJ1iQRtAggbplUeGsn23QHaEQo
To claim this, I am signing this object:
using UnityEngine; | |
using UnityEngine.XR.Management; | |
/// <summary> | |
/// Handles the initialization and deinitialization of XR subsystems in Unity. | |
/// </summary> | |
/// <remarks> | |
/// When developing with a Meta Quest headset, this helps to prevent a black screen and the hourglass loading icon in the headset screen on application exit, | |
/// and subsequent issues when re-entering play mode. | |
/// </remarks> |
using UnityEngine; | |
using UnityEditor; | |
using UnityEngine.ProBuilder; | |
using GLTFast.Export; | |
using GLTFast.Logging; | |
using System.Threading.Tasks; | |
using System.Reflection; | |
public class ExportAndReplaceProBuilderMeshes : MonoBehaviour | |
{ |
I hereby claim:
To claim this, I am signing this object:
private void DrawScriptFields() | |
{ | |
EditorGUI.BeginDisabledGroup(true); | |
MonoScript monoScript = (target as MonoBehaviour) != null | |
? MonoScript.FromMonoBehaviour((MonoBehaviour)target) | |
: MonoScript.FromScriptableObject((ScriptableObject)target); | |
EditorGUILayout.ObjectField("Script", monoScript, GetType(), false); | |
MonoScript monoScript2 = MonoScript.FromScriptableObject((ScriptableObject)this); |
//source https://github.com/microsoft/MixedRealityToolkit-Unity/issues/1654#issuecomment-359114223 | |
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
/// <summary> | |
/// The dependency resolver allows classes to register themselves as the instance to be used for a given interface. | |
/// Other classes can then query the dependency resolver to get the instance to use. | |
/// This is essentially doing dependency injection. |
#Sources: | |
#https://github.com/github/gitignore/blob/master/Unity.gitignore | |
#https://github.com/Microsoft/HoloToolkit-Unity/blob/master/.gitignore | |
#https://github.com/Microsoft/GalaxyExplorer/blob/master/.gitignore | |
#https://gist.github.com/Ikalou/197c414d62f45a1193fd | |
# =============== # | |
# Unity generated # | |
# =============== # | |
/[Ll]ibrary/ |
using UnityEngine; | |
public static class RandomDistinctIntegers | |
{ | |
/// <summary> | |
/// Generates distinct integers. | |
/// The Integers inside the array are not randomized. If n = range; | |
/// This Algorithm works good for a lager amount of numbers and uses less memory than Fischer. | |
/// Source: https://visualstudiomagazine.com/articles/2013/07/01/generating-distinct-random-array-indices.aspx | |
/// </summary> | |
/// <param name="size"> Number of distinct values to generate.</param> |
/// <summary> | |
/// This tool helps to identify and remove empty folders from your Unity 3D project. | |
/// | |
/// /// Why do I need this: | |
/// Empty folders are not committed by git but the connected meta files are. | |
/// So there will be a creation - deletion cycle between between person with and without such a folder. | |
/// | |
/// /// Usage: | |
/// The tool adds a new menu Tools->Empty Folder Tool. | |
/// 1. If you "Toggle Auto Delete", every time you remove or move something in your project |