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.EventSystems; | |
using UnityEngine.Rendering; | |
using UnityEngine.UIElements; | |
#if ENABLE_INPUT_SYSTEM | |
using UnityEngine.InputSystem.UI; | |
#endif | |
#if UNITY_EDITOR | |
using UnityEditor; |
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
#ifndef RAYMARCHSDFINCLUDE_INCLUDED | |
#define RAYMARCHSDFINCLUDE_INCLUDED | |
#define STEPS 256 | |
#define MAX_DISTANCE 500 | |
#define MIN_DISTANCE 0.001 | |
#if !SHADERGRAPH_PREVIEW | |
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Texture.hlsl" | |
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" |
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 System.IO; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
using UnityEditor; | |
using UnityEngine.UIElements; | |
namespace Postprocessors |
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; | |
using UnityEngine.UIElements; | |
using UnityEngine.UIElements.Experimental; | |
public static class UIAnimationsUtils | |
{ | |
public static ValueAnimation<float> FadeIn(VisualElement visualElement, int durationMS, Func<float, float> easing, Action callback = null, bool disabledWhenInvisible = true) | |
{ | |
var fromOpacity = visualElement.style.opacity.value; | |
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
import THREE from 'three'; | |
import CANNON from 'cannon'; | |
export const generateThreeVertices = (rawVerts) => { | |
let verts = []; | |
for(let v = 0; v < rawVerts.length; v+=3){ | |
verts.push(new THREE.Vector3(rawVerts[v], | |
rawVerts[v+1], | |
rawVerts[v+2])); |
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; | |
using Unity.Netcode; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
namespace Router | |
{ | |
public static class SceneRouter | |
{ | |
public enum SceneType |
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
<ui:UXML> | |
<Style> | |
:root { | |
--search-bar-height: 40px; | |
--text-color: rgb(255, 255, 255); | |
--background-color: rgba(0, 0, 0, 0.8); | |
--animation-duration: 500ms; | |
} | |
.search-panel { |
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.IO; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; // https://docs.unity3d.com/Packages/com.unity.nuget.newtonsoft-json@2.0/manual/index.html | |
using UnityEngine; | |
public static class FileUtils | |
{ | |
public static string RootDirectory | |
{ |
NewerOlder