HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent
- Dword
DisableWindowsConsumerFeatures
set to1
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
// based on https://gist.github.com/gre/1650294 | |
// no easing, no acceleration | |
export function linear( t ) { | |
return t; | |
} | |
// accelerating from zero velocity | |
export function easeInQuad( t ) { | |
return t * t; |
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 UnityEditor; | |
using Utils.Reflection; | |
using System.Linq; | |
public class AttributeDemo | |
{ | |
/// <summary> | |
/// A quick demo for grabing fields on an object that were tagged with a given Attribute. | |
/// In this case an ‘Order’ attribute is used to display the tagged fields in a specific order. |
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
//place this script in the Editor folder within Assets. | |
using UnityEditor; | |
//to be used on the command line: | |
//$ Unity -quit -batchmode -executeMethod WebGLBuilder.build | |
class WebGLBuilder { | |
static void build() { | |
string[] scenes = {"Assets/main.unity"}; |
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
#include <roxlu/io/Socket.h> | |
Socket::Socket() { | |
#ifdef _WIN32 | |
int result = WSAStartup(MAKEWORD(2,2), &wsa_data); | |
if(result != 0) { | |
printf("Error: cannot initialize WinSock.\n"); | |
WSACleanup(); | |
} | |
#endif |
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 UnityEditor; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Reflection; | |
public class EditorCoroutineRunner | |
{ | |
[MenuItem("Window/Lotte's Coroutine Runner: Demo")] |
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Reflection; | |
public static class EditorExtensionMethods | |
{ | |
// Public reimplmentation of extention methods and helpers that are marked internal in UnityEditor.dll |
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
@echo off | |
:: Path to Sublime Text installation dir. | |
SET stPath=%~dp0sublime_text.exe | |
SET stPathOnly=%~dp0 | |
:: Key name for the registry entries. | |
SET UserEntry=Sublime Text | |
SET AdminEntry=Sublime Text As Admin | |
:: Context menu texts. | |
SET "UserMenuText=Open with Sublime(&-)" | |
SET "AdminMenuText=Open with Sublime As Admin(&+)" |
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
Shader "Name" { | |
Properties { | |
name ("display name", Range (min, max)) = number | |
name ("display name", Float) = number | |
name ("display name", Int) = number | |
name ("display name", Color) = (number,number,number,number) | |
name ("display name", Vector) = (number,number,number,number) |
OlderNewer