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 / UnityReleaseNotesConsolidator.py
Last active August 29, 2023 05:01
Using https://services.docs.unity.com/release/v1/index.html, this program consolidates the notes from multiple versions. This can be improved quite a ton. Test it from the following URL and the resulting file will be in a tab besides the code. https://trinket.io/python3/44215f630c?runOption=run
import json
import requests as requests
from urllib.request import urlopen
def get_notes_from(version):
notes_url = version["releaseNotes"]["url"]
notes = urlopen(notes_url)
if notes.getcode() == 200:
print(f"Release notes successfully loaded for version {version['version']}")
@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 / SupportTools.cs
Created October 5, 2022 16:25
Compare two artifacts folder
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System.Text;
using System;
@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 / CompatibleProfilerTags.cs
Created May 13, 2022 01:08
I have drafted a script to validate if profile markers are returning the expected values per platform. Just add it to a GameObject in the first scene. It will be marked as DontDestroyOnLoad, and it will show a button on the screen to start tracking the platform markers. So, you can start playing, changing scenes, etc. Later on, stop the marker t…
using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using Unity.Profiling;
using Unity.Profiling.LowLevel.Unsafe;
using System.Collections;
using System.IO;
using System.Threading.Tasks;
@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
{

Keybase proof

I hereby claim:

  • I am seprab on github.
  • I am seprab (https://keybase.io/seprab) on keybase.
  • I have a public key ASDEQ5wVr3B_XfDJnlV9SPujY0y_QK-ygDQKvJbfum_13Ao

To claim this, I am signing this object: