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
#if UNITY_EDITOR | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEditor; | |
public class FontSwitcher : EditorWindow | |
{ | |
[MenuItem("Font/Show Window")] | |
public static void ShowFontWindow() | |
{ |
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
// display a background texture banner | |
GUI.DrawTexture(new Rect(-30.0f, 384.0f, m_topScoreBanner.width, m_topScoreBanner.height), m_topScoreBanner); | |
Vector2 pivotPoint = new Vector2(Screen.width / 2, Screen.height / 2); | |
GUIStyle scoreStyle = new GUIStyle(); | |
// DEBUG: create a background texture coloring the entire label background | |
Texture2D debugTex = new Texture2D(1,1); | |
debugTex.SetPixel(0,0,Color.grey); | |
debugTex.Apply(); |
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
/// | |
/// Draw lines at runtime | |
/// by Nothke | |
/// unlicensed, aka do whatever you want with it | |
/// made during Stugan 2016 :) | |
/// ..(it's midnight, and Robbie clicks A LOT, LOUDLY!) | |
/// | |
/// Important: | |
/// - Should be called in OnPostRender() (after everything else has been drawn) | |
/// therefore the script that calls it must be attached to the camera |
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.IO; | |
using UnityEditor; | |
public static class DumpEditorTextures | |
{ | |
const string AssetsFolder = "Assets"; | |
const string TexturesDestFolderNamePro = "TexturesPro"; | |
const string TexturesDestFolderNameNormal = "TexturesNormal"; | |
static readonly string TexturesDestPathPro = Path.Combine(AssetsFolder, TexturesDestFolderNamePro); |
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
#lang racket/base | |
;; ---------------------------------------------------------------------------- | |
;; | |
;; Valeriya P. | |
;; https://gist.github.com/hww | |
;; _______ ________ ________ | |
;; | | | | | | | | | | |
;; | | | | | | | | | |
;; |___|___|________|________| | |
;; |
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
#lang racket/base | |
(require (for-syntax racket/base)) | |
(require (for-syntax racket/syntax racket/base syntax/parse)) | |
(require racket/syntax) | |
;; /////////////////////////////////////////////// | |
;; In case if the argumens are anything but not ID | |
;; /////////////////////////////////////////////// | |
(define (get-1) 100) |
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
# Python | |
import os | |
import sys | |
def create_table(poly): | |
init=0 | |
l=[0]*256 | |
for i in range(256): |
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.IO; | |
using System.Collections.Generic; | |
using System; | |
/// <summary> | |
/// Simple localization solution for Unity engine. | |
/// Loading and parsing language.po.txt file from streaming assets folder. | |
/// | |
/// Author: Valery https://github.com/hww | |
/// |
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 UnityEditor; | |
using UnityEngine; | |
[CustomEditor(typeof(MeshFilter))] | |
public class NormalsVisualizer : Editor { | |
private Mesh mesh; | |
void OnEnable() { | |
MeshFilter mf = target as MeshFilter; |
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
(let [ns 'clojure-west.demo] | |
(require ns) | |
(in-ns ns) | |
(use | |
'clojure.pprint | |
'clojure.repl | |
'clojure-west.freeze) | |
(require | |
;'[clojure-west.mesh :as mesh] | |
'[clojure-west.materials :as mat] |
NewerOlder