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
#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 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
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/[email protected]/manual/index.html | |
using UnityEngine; | |
public static class FileUtils | |
{ | |
public static string RootDirectory | |
{ |
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.UIElements; | |
using UnityEngine.UIElements.Experimental; | |
public class Animation : MonoBehaviour | |
{ | |
[SerializeField] private Transform transform; | |
[SerializeField] private UIDocument uiDocument; | |
[SerializeField] private int durationMs = 3000; |
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" |
NewerOlder