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
Commands: | |
editors | |
description: list the releases and installed editors | |
alias: e | |
example: Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless editors -r | |
options: | |
[default] list of available releases and installed editors on your machine combined | |
--releases|-r only list of available releases promoted by Unity | |
--installed|-i only list of installed editors on your machine | |
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
Vector3 RelativeMouseAt() | |
{ | |
var mouseOverWindow = EditorWindow.mouseOverWindow; | |
System.Reflection.Assembly assembly = typeof(UnityEditor.EditorWindow).Assembly; | |
Type type = assembly.GetType("UnityEditor.PlayModeView"); | |
int displayID = 0; | |
if (type.IsInstanceOfType(mouseOverWindow)) | |
{ | |
var displayField = type.GetField("m_TargetDisplay", BindingFlags.NonPublic | BindingFlags.Instance); |
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
/* | |
* http://arduino.cc/playground/ComponentLib/Thermistor2 | |
* | |
* Inputs ADC Value from Thermistor and outputs Temperature in Celsius | |
* requires: include <math.h> | |
* Utilizes the Steinhart-Hart Thermistor Equation: | |
* Temperature in Kelvin = 1 / {A + B[ln(R)] + C[ln(R)]3} | |
* where A = 0.001129148, B = 0.000234125 and C = 8.76741E-08 | |
* | |
* These coefficients seem to work fairly universally, which is a bit of a |
OlderNewer