Skip to content

Instantly share code, notes, and snippets.

View babon's full-sized avatar

Dmitry babon

View GitHub Profile
@babon
babon / ExtensionlessTexture2DToPNG.cs
Created July 28, 2020 05:42
Convert unity texture without extension as png
[ContextMenuItem("Yo", "Yo")]
public Texture2D tex;
public void Yo()
{
Texture2D DeCompress(Texture2D source)
{
RenderTexture renderTex = RenderTexture.GetTemporary(
source.width,
source.height,
0,
@omgwtfgames
omgwtfgames / A set of Unity3D extension methods
Last active March 2, 2024 17:44
Some useful extension method for Unity3D
A collection of useful C# extension methods for the Unity engine.
using UnityEngine;
using System.Collections;
using System.Security.Cryptography;
using System.Text;
public class EncryptedPlayerPrefs {
// Encrypted PlayerPrefs
// Written by Sven Magnus
// MD5 code by Matthew Wegner (from [url]http://www.unifycommunity.com/wiki/index.php?title=MD5[/url])