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/GlitchEffect" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _GlitchStrength ("Glitch Strength", Range(0, 1)) = 0.1 | |
| _UseFloorGlitch ("Use Floor Glitch", Float) = 0 // 0 = Обычный, 1 = С `floor()` | |
| } |
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 "Unlit/CubeGlich" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _GlitchStrength ("Glitch Strength", Range(0, 1)) = 0.1 | |
| _BlockSize ("Block Size", Range(1, 50)) = 10 | |
| } | |
| 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
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| using UnityEngine; | |
| using UnityEngine.UIElements; | |
| using System.Reflection; | |
| [InitializeOnLoad] | |
| public static class TheMostUsefulScriptEver_Rememberer | |
| { | |
| const string PREF_KEY = "TheMostUsefulScriptEver_Rememberer_Enabled"; |
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
| #if UNITY_EDITOR | |
| using UnityEngine; | |
| //using UnityEditor; // Для работы в редакторе | |
| [ExecuteInEditMode] // Позволяет скрипту работать в редакторе | |
| [RequireComponent(typeof(LightProbeGroup))] // Требует наличия LightProbeGroup | |
| public class LightProbePlacer : MonoBehaviour | |
| { | |
| [Header("Corner Points (Diagonal)")] | |
| [Tooltip("Первая точка (один из углов прямоугольника)")] |
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
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| using UnityEditor.SceneManagement; | |
| using UnityEngine; | |
| using UnityEngine.UIElements; | |
| using System.Reflection; | |
| public static class EnterPlayModeTogglesToolbar | |
| { | |
| private const float PositionOffset = 10f; |