Skip to content

Instantly share code, notes, and snippets.

@ididdidi
ididdidi / UnityCacheService
Last active February 5, 2024 14:41
Saving data to the device memory and organizing access to it in a Unity project. Description: https://ididdidi.ru/cases/unity3d-caching-resources
using System.IO;
using UnityEngine;
namespace UnityNetwork
{
public static class UnityCacheService
{
private const float MIB = 1048576f;
private static string cachingDirectory = "cache";
@ididdidi
ididdidi / UnityEditorIcons.txt
Created May 6, 2021 15:38 — forked from MattRix/UnityEditorIcons.txt
A list of all the built-in EdtiorGUI icons in Unity. Use EditorGUIUtility.IconContent([icon name]) to access them.
ScriptableObject Icon
_Popup
_Help
Clipboard
SocialNetworks.UDNOpen
SocialNetworks.Tweet
SocialNetworks.FacebookShare
SocialNetworks.LinkedInShare
SocialNetworks.UDNLogo
animationvisibilitytoggleoff

How to Use?

GUIStyle mystyle = new GUIStyle("some string from the list below");


UnityEditor.ConsoleWindow.Constants

  • "CN Box"
  • "Button"