Skip to content

Instantly share code, notes, and snippets.

@Sacristan
Last active March 15, 2017 08:41
Show Gist options
  • Save Sacristan/336668ff68e2d6b46d4b2cd4018b47cd to your computer and use it in GitHub Desktop.
Save Sacristan/336668ff68e2d6b46d4b2cd4018b47cd to your computer and use it in GitHub Desktop.
VS 2015 C# Interactive use UnityEngine Assembly

#How to open: View-> Other Windows -> C# Interactive

> #r "C:\Program Files\Unity\Editor\Data\Managed\UnityEngine.dll"
> using UnityEngine;
> Mathf.Sign(-1)
-1
> Vector3 startPos = Vector3.zero;
> Vector3 endPos = Vector3.one;
> Vector3.Distance(startPos, endPos)
1.73205078
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment