Skip to content

Instantly share code, notes, and snippets.

View thylaxene's full-sized avatar

thylaxene thylaxene

View GitHub Profile
@andreiagmu
andreiagmu / ModelToPrefabBatchConverter.cs
Last active June 19, 2024 07:58
Loads all 3D models from a folder and saves them as prefabs.
// Model to Prefab Batch Converter for Unity
// Loads all 3D models from a folder and saves them as prefabs.
// by Andy Miira (Andrei Müller), October 2019
//
//
// [INSTRUCTIONS]
// 0) Add this script inside an "Editor" folder in your project.
// You must create this folder if it doesn't already exist.
//
// 1) Open Unity, then click on
@CloudyWater
CloudyWater / Starfield.shader
Created February 23, 2018 03:31
Conversion of ShaderToy to Unity Shader
Shader "Starfield"
{
Properties
{
_iMouse ("iMouse", Vector) = (0,0,0,0)
_Iterations ("Iterations", int) = 17
_Formuparam ("Formuparam", float) = .53
_Steps ("Steps", int) = 20
_StepSize ("StepSize", float) = .1
_Zoom ("Zoom", float) = .8
@tsubaki
tsubaki / ExportLightprobe.cs
Created September 6, 2015 13:35
LightProbeをシーンから出力する
using UnityEngine;
using System.Collections;
using UnityEditor;
using System.IO;
public class ExportLightprobe
{
[MenuItem("Export/Export LightProbe")]
static void Export()
{
@prime31
prime31 / Sriracha Sauce
Created February 9, 2014 02:19
Sriracha Sauce recipe
Ingredients:
- 1.5 lbs of hot peppers. Mix and match whatever you want: jalepenos, anaheims, haberneros, etc. If you can get at least 0.5 lb ripened red I recommend doing so but if you cant all green peppers works as well. If you don't want it too hot don't add all the seeds.
- 8 T honey (preferably local, raw honey. If you don't really worry about what you eat you can use suger/brown sugar)
- 6 cloves of garlic
- 3 t salt
- 1/2 cup vinegar (preferably raw Apple Cider vineger. If you don't really worry about what you eat you can use white vinegar)
@Chman
Chman / gist:3158887
Created July 22, 2012 08:19
Kongregate API & Unity3D
// Kongregate API integration in Unity3D (UnityScript version)
//
// 1. Create a "KongAPI" game object in your very first scene.
// 2. Create a new script "KongAPI.js".
// 3. Fill it with the following code :
#pragma strict
static var isConnected:boolean = false;
static var userId:int = 0;
@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining