Unity | Backend | TargetSDK | Build Solution | Deploy to HL1 Sim(x86) | Deploy to HL2 Sim(x86) |
---|---|---|---|---|---|
Unity 2018.3.14f1 | .NET | 10.0.17763.0 | Success | Success | Success |
Unity 2018.3.14f1 | .NET | 10.0.18362.0 | Success | Success | Success |
This file contains 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 Mono.Options; | |
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
public class StdinReader : MonoBehaviour | |
{ | |
private string stringValue = ""; | |
private int number = 0; |
This file contains 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 DisplayScript : MonoBehaviour | |
{ | |
void Start() | |
{ | |
Debug.Log("displays connected: " + Display.displays.Length); | |
Display.displays[0].Activate(); | |
Display.displays[1].Activate(); |
This file contains 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; | |
/// <summary> | |
/// HoloLensを0Dofにする。 | |
/// <para>カメラの親要素(MixedRealityPlayspace)にAttachするスクリプト</para> | |
/// </summary> | |
public class DisableCameraTracking : MonoBehaviour | |
{ | |
Transform cacheCamera; | |
void Start() |
This file contains 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 static class TransformHelper | |
{ | |
/// <summary> | |
/// World座標系のQuaternionを対象のTransformのlocalRotationに変換する | |
/// </summary> | |
/// <param name="target">対象のTransform</param> | |
/// <param name="worldRotation">World座標系のQuaternion</param> | |
/// <returns>localRotation</returns> |
This file contains 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
// ## Repository | |
// * https://github.com/hecomi/uWindowCapture | |
// * https://github.com/hecomi/uWindowCapture/blob/7e1df4fee1a1c6d812079a4355cbb609686734f2/Assets/uWindowCapture/Shaders/UwcCommon.cginc | |
#ifndef UWC_COMMON_CGINC | |
#define UWC_COMMON_CGINC | |
#include "UnityCG.cginc" |
This file contains 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 System.Collections; | |
using System.IO; | |
public class SaveRenderTextureToJPG : MonoBehaviour | |
{ | |
[SerializeField] | |
Renderer targetRenderer; | |
private void Start() |
This file contains 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
$ mldb | |
-d - directs command to the only connected USB device | |
returns an error if more than one USB device is present. | |
-s <specific device> - directs command to the device with the given serial number | |
or qualifier. Overrides ML_SERIAL environment variable. | |
-H - Name of mldb server host (default: localhost). Can also | |
be specified with MLDB_SERVER_HOST environment variable. | |
-P - Port of mldb server (default: 5038) | |
mldb devices [-l] - list all connected devices | |
('-l' will also list device qualifiers) |
This file contains 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
#if !UNITY_EDITOR && UNITY_WSA | |
using Windows.Media.Capture; | |
#endif | |
class Hoge:MonoBehaviour | |
{ | |
#if !UNITY_EDITOR && UNITY_WSA | |
public async void funcA() | |
{ |
This file contains 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
@if(0)==(0) ECHO OFF | |
cscript.exe //nologo //E:JScript "%~f0" %* | |
@pause | |
GOTO :EOF | |
@end | |
// 温度を計測する間隔 | |
var measure_interval_ms = 5000; |
NewerOlder