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
// Two-pass box blur shader created for URP 12 and Unity 2021.2 | |
// Made by Alexander Ameye | |
// https://alexanderameye.github.io/ | |
Shader "Hidden/Blur" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" | |
} |
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
/* | |
* The following code was taken from: http://schemingdeveloper.com | |
* | |
* Visit our game studio website: http://stopthegnomes.com | |
* | |
* License: You may use this code however you see fit, as long as you include this notice | |
* without any modifications. | |
* | |
* You may not publish a paid asset on Unity store if its main function is based on | |
* the following code, but you may publish a paid asset that uses this code. |
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 UnityEditor; | |
using System.Linq; | |
namespace Invertex.Unity.Editor.Importing | |
{ | |
/// <summary> | |
/// This script will automatically generate an AvatarMask that will enable a Humanoid animation to animate all parts of your asset. | |
/// It will assign it to every clip in a new asset or every existing clip on an asset. | |
/// USAGE: Place in an "Editor" folder somewhere in your assets. |
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; | |
public class CornerCheat : MonoBehaviour { | |
public CircleCollider2D circle; | |
public Rigidbody2D body; | |
EdgeCollider2D edge; | |
[Range(0, .2f)] public float distanceThreshold = .03f; | |
[Range(0, 1)] public float dotThreshold = .96f; |
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; | |
public static class Global | |
{ | |
public static void MoveTaskToBack() | |
{ | |
if (Application.platform == RuntimePlatform.Android) | |
{ | |
AndroidJavaObject activity = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic<AndroidJavaObject>("currentActivity"); | |
activity.Call<bool>("moveTaskToBack", true); |