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
// This file is licensed under the Unity Companion License. | |
// For full license terms, please see: https://unity3d.com/legal/licenses/Unity_Companion_License | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEditor; | |
using UnityEditor.PackageManager; | |
using UnityEditor.PackageManager.Requests; | |
using UnityEngine; |
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 UnityEditor; | |
using UnityEditor.EditorTools; | |
using UnityEditor.UIElements; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
[EditorTool("Place Object Tool")] | |
public class PlaceObjectTool : EditorTool | |
{ | |
[SerializeField] Texture2D m_ToolIcon; |
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; | |
using UnityEngine.Rendering; | |
using UnityEngine.Rendering.HighDefinition; | |
public class HdrpFullscreenBlit : MonoBehaviour | |
{ | |
public Texture Source; | |
void OnEnable() | |
{ |
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; | |
using UnityEditor; | |
using System; | |
public class CloudBuildHelper : MonoBehaviour | |
{ | |
#if UNITY_CLOUD_BUILD | |
public static void PreExport(UnityEngine.CloudBuild.BuildManifestObject manifest) | |
{ | |
/* |
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
How I added UUIDs to Unity Game Objects |
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; | |
public abstract class Config<T> : ScriptableObject where T : Desc | |
{ | |
[SerializeField] protected List<T> m_Descs = new List<T>(); | |
public List<T> Descs { get { return m_Descs; } } | |
public virtual T FindByUuid(string a_Uuid) | |
{ |
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
Shader "ToonLighting" | |
{ | |
Properties | |
{ | |
_Color("Color", Color) = (0.5, 0.65, 1, 1) | |
_Diffuse("Diffuse %", Range(0, 1)) = 1 | |
_DiffuseThreshold("Diffuse Threshold", Range(0, 1)) = 0.1 | |
_DiffuseWidth("Diffuse Width", Range(0, 1)) = 0.01 |
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
Shader "MaskableGrid" | |
{ | |
Properties | |
{ | |
_Mask ("Mask", 2D) = "white" {} | |
_GridThickness ("Grid Thickness", Float) = 0.01 | |
_GridSpacing ("Grid Spacing", Float) = 10.0 | |
_GridColour ("Grid Colour", Color) = (0.5, 1.0, 1.0, 1.0) | |
_BaseColour ("Base Colour", Color) = (0.0, 0.0, 0.0, 0.0) | |
} |
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; | |
using System.Collections; | |
public class Metronome : MonoBehaviour | |
{ | |
public double bpm = 140.0F; | |
double nextTick = 0.0F; // The next tick in dspTime | |
double sampleRate = 0.0F; | |
bool ticked = false; |
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
////////////////////////Draw a head////////////////////////////// | |
fill(100 + random(150), 100 + random(150), 100 + random(150)); | |
for ( int i = 0; i < numLines; ++i ) { | |
beginShape(); | |
for ( float angle = 0; angle < 360; angle += step ) { | |
float radian = radians( angle ); | |
x = xCenter + ( headXRadius * cos( radian ) ) + random(15); | |
y = yCenter - ( headYRadius * sin( radian ) ) + random(20); | |
if ( lastx > -999 ) { |
NewerOlder