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 System.Collections; | |
public class TextureTest : MonoBehaviour { | |
public Renderer rend; | |
// Use this for initialization | |
private void Awake () { | |
rend.material.mainTexture = TextureUtility.CamToText (); |
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
#pragma strict | |
var url = "url to script"; | |
function Start () { | |
// Start a download of the given URL | |
var www : WWW = new WWW (url); | |
// Wait for download to complete | |
yield www; |
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
#pragma strict | |
import System; | |
var start : DateTime; | |
var stop : DateTime; | |
var repetitions : int = 5000000; | |
function Start () { | |
start = DateTime.Now; |
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
// We need this for parsing the JSON, unless you use an alternative. | |
// You will need SimpleJSON if you don't use alternatives. | |
// It can be gotten hither. http://wiki.unity3d.com/index.php/SimpleJSON | |
using SimpleJSON; | |
using UnityEngine; | |
using System.Collections; | |
public class Translate : MonoBehaviour { | |
// Should we debug? |
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
/* | |
Copy the "System.Drawing.dll" file in the "*\Unity\Editor\Data\Mono\lib\mono\2.0" folder into your "Assets" folder. | |
2) Attach this script to any object in your scene. | |
3) Change the "loadingGifPath" field of the script, (in the Inspector view), to the path of your Gif file. (this can be relative, from the root project folder (i.e. the parent of the "Assets" folder), or absolute | |
*/ | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using UnityEngine; | |
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 UnityEngine; | |
[Serializable] | |
public struct HSBColor | |
{ | |
public float H; | |
public float S; | |
public float B; | |
public float A; |
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 System.Collections; | |
using System.Collections.Generic; | |
using PowerUI; | |
/// <summary> | |
/// This is the default PowerUIManager with a much needed design resolution. | |
/// </summary> | |
public class GUIManager : MonoBehaviour { | |
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
// Sean Loper | |
// 2015 | |
// Also supports complete controller input! | |
// Pokemon Styled Movement Controller for Unity of course! | |
using UnityEngine; | |
using System.Collections; | |
public class MoveController : MonoBehaviour { |
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 System.Collections; | |
using PowerUI; | |
using NodeCanvas.DialogueTrees; | |
public class DialoguePowerUI : UnityEngine.MonoBehaviour { | |
public TextAsset HtmlFile; | |
#if UNITY_EDITOR | |
private LiveHtml Reloader; |
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
Shader "Custom/Curved" { | |
Properties { | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_QOffset ("Offset", Vector) = (0,0,0,0) | |
_Dist ("Distance", Float) = 100.0 | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } | |
Pass | |
{ |