Skip to content

Instantly share code, notes, and snippets.

View unitycoder's full-sized avatar
‏‏‎

mika unitycoder

‏‏‎
View GitHub Profile
@unitycoder
unitycoder / how to download Meta Sam3D model output.md
Created November 20, 2025 14:12
how to download Meta Sam3D model output

how to download Meta Sam3D model output (gaussian splat .ply)

  • press F12 to open browser developer tools, open Network tab
  • generate some 3d object https://aidemos.meta.com/segment-anything/editor/convert-image-to-3d
  • view Fetch/XHR requests in the network panel
  • find graphql/ request (usually the last one), with data like: data: {xfair_sam3d_3dfy_model_gaussian_splat...
  • open the data hierarchy to find "gaussian_splat: ..." and it contains url to .ply file
  • copy that url and open in browser to download file
@unitycoder
unitycoder / youtubefix.js
Created November 15, 2025 21:45
[greasemonkey] youtube remove shorts link and scale thumbnails
// ==UserScript==
// @name Replace YouTube Menu Item with My Channel
// @namespace http://unitycoder.com
// @version 1.2
// @description Replace the second YouTube menu item with a link to "My Channel" and set proper scale for channel thumbnails
// @author You
// @match https://www.youtube.com/
// @grant none
// ==/UserScript==
@unitycoder
unitycoder / ExampleFunctions.cs
Created November 7, 2025 21:00
List of lists in Inspector (Unity Editor Inspector Field)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Example : MonoBehaviour
{
public List<ListWrapper<Vector3>> example = new List<ListWrapper<Vector3>>();
public void ExampleFunctions()
{
@unitycoder
unitycoder / Search.index.json
Created November 6, 2025 20:33
Disable Unity Editor Indexing Service
// https://discussions.unity.com/t/how-to-disable-searcher-in-6-4/1693707/6
// You can disable indexing of assets for advance search (this is what is crashing) by modifyin the UserSettings/Search.index file in your project:
{
"name": "Assets",
"type": "asset",
"roots": [
],
"includes": [],
"excludes": [
"Assets/Temp/",
@unitycoder
unitycoder / DSShaderGUI.cs
Created November 3, 2025 11:03
DSShaderGUI from DigitalSalmon
// https://www.twitch.tv/digitalsalmon
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using DigitalSalmon.Extensions;
using UnityEditor;
using UnityEditor.Graphs;
using UnityEditor.Rendering;
using System;
using UnityEngine;
using UnityEngine.Rendering;
using Random = System.Random;
namespace StellarConquest.Presentation.Unity
{
public class StarfieldMeshBuilder : MonoBehaviour
{
public float SphereRadius = 4000;
@unitycoder
unitycoder / rust cargo notes.md
Created October 3, 2025 17:53
rust cargo notes

update rust

rustup update

@unitycoder
unitycoder / FresnelOverlay_Add1.shader
Created September 30, 2025 13:06
Fresnel shaders, HDR, Overlay
Shader "Custom/FresnelOverlay_Add1"
{
Properties
{
[HDR]_RimColor ("Fresnel Color (HDR)", Color) = (3,3,3,1)
_RimPower ("Fresnel Power", Range(0.1, 8)) = 3.0
_RimStrength ("Fresnel Strength", Range(0, 10)) = 1.0
_DoubleSided ("Double-Sided (0=Back,1=Off,2=Front)", Range(0,2)) = 2
_DepthBias ("Depth Bias (to avoid misses)", Float) = 0.0
}
@unitycoder
unitycoder / OutlineOnlyHDR.shader
Created September 30, 2025 11:45
mesh outline only hdr
// by Mr. Chap Gipity
Shader "Custom/OutlineOnlyHDR"
{
Properties
{
[HDR]_OutlineColor("Outline (HDR Emission)", Color) = (5,5,5,1)
_OutlineWidth("Width (view-space units)", Float) = 0.02
_ZOffset("Depth Offset (units)", Float) = 0.0
}
SubShader
@unitycoder
unitycoder / what does WTF mean - Welcome to Finland.md
Created September 19, 2025 18:41
what does WTF mean? Meaning of WTF, Real meaning W T F? Explain WTF.

what does WTF mean? Meaning of WTF, Real meaning W T F? Explain WTF.

It means: Welcome To Finland W = Welcome T = To F = Finland

This is the original true meaning.