Skip to content

Instantly share code, notes, and snippets.

@insominx
insominx / TextDumpEditorWindow.cs
Last active August 7, 2024 22:58
Text Dump for LLMs - combines multiple files into a single text file and identifies where the text originally came from
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Collections.Generic;
public class TextDumpEditorWindow : EditorWindow
{
readonly List<string> inputFolders = new();
string outputFilePath = "Assets/code-dump.txt";
string fileExtensions = "cs"; // Default to .cs files
using UnityEngine;
using System.Collections;
namespace Util {
// =========================================================================
public class EventListener<T> where T: GameEvent {
public T receivedEvent;
@insominx
insominx / RandomShake.cs
Created May 16, 2013 23:02
Unity3D Camera Shake using random.
using UnityEngine;
using System.Collections;
public class RandomShake : MonoBehaviour {
public float duration = 0.5f;
public float magnitude = 0.1f;
public bool test = false;