Error
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hosts
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Cleverous | |
{ | |
public static class DefineSymbolUtil | |
{ | |
public const string Symbol = "YOUR_DEFINE_SYMBOL"; |
#ifndef TRICUBIC_INCLUDED | |
#define TRICUBIC_INCLUDED | |
float4 Cubic(float v) | |
{ | |
float4 n = float4(1.0, 2.0, 3.0, 4.0) - v; | |
float4 s = n * n * n; | |
float x = s.x; | |
float y = s.y - 4.0 * s.x; | |
float z = s.z - 4.0 * s.y + 6.0 * s.x; |
Error
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hosts
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
public enum BehaviourTreeState | |
{ | |
Success, | |
Failure, | |
Running | |
} |
// Improved FastPlatformSwitcher for Unity 2018 (and maybe other Unity versions) | |
// For Asset Database v1 | |
// by Andy Miira (Andrei Müller), October 2019 | |
// | |
// Based on: | |
// Unity – fast build platform switcher script! (by Aymeric - Da Viking Code) | |
// https://davikingcode.com/blog/unity-fast-build-platform-switcher-script/ | |
// | |
// A simple fast platform switcher for Unity (by Waldo Bronchart) | |
// https://gist.github.com/waldobronchart/b3cb789c028c199e2855 |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections.Generic; | |
using System.IO; | |
//https://answers.unity.com/questions/510945/find-materials-that-use-a-certain-shader.html | |
public class ShaderOccurenceWindow : EditorWindow { | |
[MenuItem ("Tools/Shader Occurence")] | |
public static void Open () { |
// put me in an Editor folder | |
using System.IO; | |
using UnityEditor; | |
using UnityEditorInternal; | |
using UnityEngine; | |
public static class LayoutUtils | |
{ | |
// unity stores layouts in a path referenced in WindowLayout.LayoutsPreferencesPath. | |
// Unfortunately, thats internal - well just creat the path in the same way they do! |
git fsck --lost-found | |
git gc --prune=now |
/******************************************************************************* | |
* Don't Be a Jerk: The Open Source Software License. | |
* Adapted from: https://github.com/evantahler/Dont-be-a-Jerk | |
******************************************************************************* | |
* _I_ am the software author - JohannesMP on Github. | |
* _You_ are the user of this software. You might be a _we_, and that's OK! | |
* | |
* This is free, open source software. I will never charge you to use, | |
* license, or obtain this software. Doing so would make me a jerk. | |
* |