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.Collections.Generic; | |
using UnityEngine; | |
#region global component extension functions | |
public static class TweenEx | |
{ | |
/// <summary> Main tweener fucntion </summary> | |
public static Tween tween( this Component comp, float duration = 1f, Tween.EaseType ease = default, float delay = 0f, bool autoStart = true ) | |
{ |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public class FibonacciSphere : MonoBehaviour | |
{ | |
[Range(0,500)] public int count = 200; | |
[Range(0,2f)] public float radius = 1f; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
[ExecuteInEditMode] | |
public class DisableXR : MonoBehaviour | |
{ |
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
#if UNITY_EDITOR | |
using System.Reflection; | |
using UnityEditor; | |
using System.Linq; | |
using UnityEngine; | |
public class EditorSceneGUIOverlay : Editor |
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
#if UNITY_EDITOR | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Reflection; | |
public class EditorFontSize : EditorWindow | |
{ | |
// enable resize on launch to set a default font size , using this option will disable the ability to have the window accassible |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> | |
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport'/> | |
<meta name="viewport" content="width=device-width"/> | |
<title>PHP CDN</title> |
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
from __future__ import print_function | |
import numpy as np | |
import struct # convert from Python values and C structs | |
import tensorflow as tf | |
import re | |
import barracuda | |
from barracuda import Struct | |
from google.protobuf import descriptor | |
from google.protobuf.json_format import MessageToJson |
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
// as seen on : https://www.youtube.com/watch?v=N92w4e-hrA4 | |
// using : https://github.com/infusion/Fraction.js/blob/master/fraction.min.js | |
function makeLoop( z, c, loop_limit = 7, max_value = 1000000 ) | |
{ | |
var loop = [ z ]; | |
var calc_func = ( vz, vc ) => vz.mul( vz ).add( vc ); | |
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
// Download the DLL here: | |
// https://www.nuget.org/packages/YamlDotNet/ | |
// at "Download package ( ... KB )" | |
// browse for the lib > .Net35 folder copy paste the dll into your unity assets folder | |
// Note this script file must be located inside a folder named "Editor" | |
using System; | |
using System.Text; | |
using System.IO; |
NewerOlder