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 System; | |
using UnityEditor; | |
using UnityEngine; | |
public class SetGitPath : MonoBehaviour | |
{ | |
[InitializeOnLoadMethod] | |
// Start is called before the first frame update | |
public static void Initialize() | |
{ |
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
%YAML 1.1 | |
%TAG !u! tag:unity3d.com,2011: | |
--- !u!114 &11400000 | |
MonoBehaviour: | |
m_ObjectHideFlags: 0 | |
m_CorrespondingSourceObject: {fileID: 0} | |
m_PrefabInstance: {fileID: 0} | |
m_PrefabAsset: {fileID: 0} | |
m_GameObject: {fileID: 0} | |
m_Enabled: 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
<?xml version="1.0" encoding="utf-8" standalone="no"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
android:installLocation="auto"> | |
<uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" /><!-- Request the headset DoF mode --> | |
<application> | |
<activity | |
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" | |
android:configChanges="locale|fontScale|keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" | |
android:launchMode="singleTask" | |
android:name="com.unity3d.player.UnityPlayerActivity" |
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; | |
using UnityEngine.XR; | |
namespace MMM.XR | |
{ | |
public class InputExplore : MonoBehaviour | |
{ | |
[SerializeField] private GameObject _leftHandPrefab; | |
[SerializeField] private GameObject _rightHandPrefab; | |
[SerializeField] private Transform _handContainer; |
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
#!/usr/bin/python3 | |
#Copyright 2017 Michael Kirsch | |
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), | |
#to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
# and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
#The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
try: | |
import time |
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 Valve.VR; | |
public class RaycastHoverPoint : MonoBehaviour { | |
public LayerMask LayerMask; | |
public Transform target; | |
public float MaxDistance = 5; | |
public void OnPoseUpdate(SteamVR_Action_Pose pose) | |
{ |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class AudienceCamera : MonoBehaviour | |
{ | |
public GameObject mainCameraEye; | |
public bool lockZ = true; |
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 static WebCamTexture PrepareWebCamTexture (ref WebCamDevice device, bool frontFace, int width, int height) | |
{ | |
WebCamTexture texture = null; | |
// Checks how many and which cameras are available on the device | |
for (int cameraIndex = 0; cameraIndex < WebCamTexture.devices.Length; cameraIndex++) { | |
if (WebCamTexture.devices [cameraIndex].isFrontFacing == frontFace) { | |
Debug.Log (cameraIndex + " name " + WebCamTexture.devices [cameraIndex].name | |
+ " isFrontFacing " + WebCamTexture.devices [cameraIndex].isFrontFacing); | |
device = WebCamTexture.devices [cameraIndex]; |
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
// MIT License for original content by Momo the Monster | |
// For Dwell & PDXCCCards | |
// Feel free to remove the redundant braces in the for loop if you want it to read tighter. | |
internal void GrowMany() | |
{ | |
Sequence s = DOTween.Sequence(); | |
for (int i = 0; i < numberToGrow; i++) | |
{ | |
s.AppendCallback(Grow).AppendInterval(growSpeed); |
NewerOlder