Skip to content

Instantly share code, notes, and snippets.

View seprab's full-sized avatar
🎯
Digi-Evolving

Sergio Prada seprab

🎯
Digi-Evolving
View GitHub Profile
@seprab
seprab / PlayerLoop.cs
Last active February 15, 2023 23:36 — forked from LotteMakesStuff/PlayerLoop.cs
Player Loop Visualizer: Built to explore the new PlayerLoopSystem api in Unity 2018.1b2. This tool shows you all the PlayerLoop systems that unity uses to update a frame, and demos how to add your own and even remove systems from the player loop. For more info see the patreon post https://www.patreon.com/posts/unity-2018-1-16336053
// Put this in an editor folder
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.LowLevel;
using UnityEngine.Profiling;
@seprab
seprab / AssetSizeEstimation.cs
Last active May 13, 2022 01:22 — forked from Unity-Javier/AssetSizeEstimation.cs
Javier's script is not anymore compatible with Unity 2021, so here it is. I like to use it because it helps to identify the corresponding artifact per asset.
using System.IO;
using System.Linq;
using UnityEngine;
using UnityEditor;
using System.Text;
using UnityEditor.Experimental;
public class AssetSizeEstimation
{
private static readonly string[] ExcludeRules = {"com.unity."};
@seprab
seprab / DeviceInfo.cs
Created May 2, 2021 00:12 — forked from StefanoCecere/DeviceInfo.cs
Unity: DeviceInfo to collect and JSONize all system and app info
using UnityEngine;
namespace MyApp
{
/// <summary>
/// the DeviceInfo class is used to collect all technical details to be included in any debug report.
/// this class can be easily encoded into JSON by JsonUtility.ToJson(new DeviceInfo())
/// </summary>
public class DeviceInfo
{