Skip to content

Instantly share code, notes, and snippets.

View tcgm's full-sized avatar

TCGM tcgm

View GitHub Profile
// Used to generate Texture Array asset
// Menu button is available in GameObject > Create Texture Array
// See CHANGEME in the file
using UnityEngine;
using UnityEditor;
public class TextureArray : MonoBehaviour {
[MenuItem("GameObject/Create Texture Array")]
static void Create()
@tcgm
tcgm / claim_all_the_things.js
Created April 3, 2024 06:30 — forked from lats/claim_all_the_things.js
Tampermonkey script to claim all of the items within a Bundle on Itch.io
// ==UserScript==
// @name Activate all Itch.io Bundle downloads
// @version 1
// @include https://itch.io/bundle/download/*
// @include https://*.itch.io/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @grant none
// ==/UserScript==
$(document).ready(function() {
@tcgm
tcgm / frend_detector.user.css
Created June 16, 2023 14:49 — forked from redyoshi49q/frend_detector.user.css
Puts a heart next to friends from your Lemmy homeserver and any manually-defined friend Lemmy servers
/* ==UserStyle==
@name Frend Detector
@namespace redyoshi49q/frendDetector
@version 1.6
@description Puts a heart next to frends from your homeserver and any manually-defined frend servers
@author @[email protected] and @[email protected]
==/UserStyle== */
/* Add your home server and any other frend servers that you want highlighted here */
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.AI;
@tcgm
tcgm / StandardSurfaceVertex.shader
Created July 12, 2022 08:05 — forked from unitycoder/StandardSurfaceVertex.shader
Standard Surface Shader with Vertex
Shader "Custom/StandardSurfaceVertex"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
}
SubShader