Skip to content

Instantly share code, notes, and snippets.

View ozgurgurbuz167's full-sized avatar

Özgür Gürbüz ozgurgurbuz167

View GitHub Profile
@SeanMcTex
SeanMcTex / MeshMeasure.cs
Created January 24, 2019 23:43
Unity Utility to display bounds of mesh objects in world space
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
/// <summary>
/// In order to help gauge the size of mesh objects,
/// this script displays the dimensions in world space of a selected object
/// with a MeshRenderer attached whenever it's selected.
/// </summary>
@FlaShG
FlaShG / HideFlagsUtility.cs
Last active June 13, 2023 06:12
Shows all GameObjects in the scene with hideFlags, so you can debug them.
using UnityEngine;
using UnityEditor;
public static class HideFlagsUtility
{
[MenuItem("Help/Hide Flags/Show All Objects")]
private static void ShowAll()
{
var allGameObjects = Object.FindObjectsOfType<GameObject>(true);
foreach (var go in allGameObjects)
@yasirkula
yasirkula / DuplicateAssetDetector.cs
Last active June 24, 2024 10:05
Find duplicate assets in Unity
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Security.Cryptography;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
using UnityEngine;
using Object = UnityEngine.Object;
@kamyker
kamyker / HideTitleMenuBar.cs
Created December 23, 2022 23:54
Unity C# hide tool bar and menu bar for light panel in dark mode
#if UNITY_EDITOR
using System;
using System.Runtime.InteropServices;
using System.Text;
using UnityEditor;
using UnityEngine;
public static class HideTitleMenuBar
{
[DllImport("user32.dll")]