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; | |
| using System.IO; | |
| using System.Text; | |
| using UnityEditor.Build; | |
| using UnityEditor.Build.Reporting; | |
| using UnityEngine; | |
| namespace Editor | |
| { | |
| public class StreamingAssetsExcluder : IPreprocessBuildWithReport, IPostprocessBuildWithReport |
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.Text; | |
| using Unity.Profiling; | |
| using UnityEngine; | |
| public class SimpleProfiler : MonoBehaviour | |
| { | |
| [SerializeField] private float _virtualWidth = 450; | |
| [SerializeField] private float _virtualHeight = 800; | |
| private Rect _windowRect = new(20, 20, 300, 100); |
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.IO; | |
| using UnityEngine; | |
| public static class StreamingAssetsUtility | |
| { | |
| public static string UnpackStreamingAssetAndroid(string fileName) | |
| { | |
| var sourcePath = Path.Combine(Application.streamingAssetsPath, fileName); | |
| var reader = new WWW(sourcePath); | |
| while (!reader.isDone){} |
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 "UI/CheapBlur" { | |
| Properties { | |
| _Color ("Main Color", Color) = (1,1,1,1) | |
| _MainTex ("Tint Color (RGB)", 2D) = "white" {} | |
| _Size ("Size", Range(0, 20)) = 1 | |
| } | |
| Category { | |
| // Set it transparent so other objects are drawn before this one. |
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.Linq; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| namespace UI | |
| { | |
| [RequireComponent(typeof(ToggleGroup))] | |
| public class SimpleToggleGroup : MonoBehaviour | |
| { | |
| private ToggleGroup _toggleGroup; |
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.UI; | |
| namespace UI | |
| { | |
| [RequireComponent(typeof(Toggle))] | |
| public class SimpleToggle : MonoBehaviour | |
| { | |
| private Toggle _toggle; |