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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class Breakable : MonoBehaviour | |
| { | |
| public float mass = 50; | |
| public float impulseThreshold = 10000; | |
| Collider _collider; |
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 UnityEngine.AI; | |
| namespace AIEngineTest | |
| { | |
| public class Archetype : MonoBehaviour, | |
| IHiraBotArchetype<NavMeshAgent>, | |
| IHiraBotArchetype<Animator>, | |
| IHiraBotArchetype<ConsolidatedSensor>, | |
| IHiraBotArchetype<HiraLGOAPRealtimeBot>, |
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
| // Tips for converting GLSL functions to Unity functions | |
| // vec turn into float (usually massive comand all replace works) | |
| // fract -> frac | |
| // mod -> modf | |
| // time, iTime, u_Time -> _Time.y | |
| float3 hsv2rgb(float3 c) { | |
| c = float3(c.x, clamp(c.yz, 0.0, 1.0)); | |
| float4 K = float4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0); |
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
| Shader "Custom/swirl" | |
| { | |
| Properties | |
| { | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
| _Metallic ("Metallic", Range(0,1)) = 0.0 | |
| } | |
| SubShader |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class AlansBlendShapeClipVowels : MonoBehaviour | |
| { | |
| [Range(0f, 1f)] public float A; | |
| [Range(0f, 1f)] public float E; | |
| [Range(0f, 1f)] public float I; | |
| [Range(0f, 1f)] public float O; |
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 UnityEngine.InputSystem; | |
| //!!>> This script should NOT be placed in an "Editor" folder. Ideally placed in a "Plugins" folder. | |
| namespace Invertex.UnityInputExtensions.Interactions | |
| { | |
| /// https://gist.github.com/Invertex | |
| /// <summary> | |
| /// Custom Hold interaction for New Input System. | |
| /// With this, the .performed callback will be called everytime the Input System updates. |
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
| var path = Path.Combine(path, exe); | |
| ProcessStartInfo startInfo = new ProcessStartInfo(path); | |
| startInfo.Arguments =""; | |
| startInfo.UseShellExecute = false; | |
| System.Diagnostics.Process.Start(startInfo); | |
| // launch hidden or minimized | |
| var path = Path.Combine(path, exe); | |
| ProcessStartInfo startInfo = new ProcessStartInfo(path); | |
| startInfo.Arguments =""; |
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
| // i copied and pasted these functions from the sticker sheet | |
| // As t runs from 0 to 1 (our normalized palette index or domain), | |
| //the cosine oscilates c times with a phase of d. | |
| //The result is scaled and biased by a and b to meet the desired constrast and brightness. | |
| // http://www.iquilezles.org/www/articles/palettes/palettes.htm | |
| // to see this function graphed out go to: https://www.desmos.com/calculator/rz7abjujdj | |
| vec3 cosPalette( float t , vec3 brightness, vec3 contrast, vec3 osc, vec3 phase) | |
| { |
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 System.Collections.Generic; | |
| using UnityEngine; | |
| using Sirenix.OdinInspector; | |
| using System; | |
| public class Goaper : MonoBehaviour | |
| { | |
| [TitleGroup("Parameters")] | |
| [OnValueChanged("OnParameterChanged")] | |
| public List<Parameter> parameters = new List<Parameter>(); |