Skip to content

Instantly share code, notes, and snippets.

View phamtrantriem's full-sized avatar

Phạm Trần Triêm phamtrantriem

View GitHub Profile
@phamtrantriem
phamtrantriem / SearchForComponents.cs
Created August 16, 2023 09:18
Tool in order to find all things that use specific component (Collectable)
//Assets/Editor/SearchForComponents.cs
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
using System.Collections;
using System.Collections.Generic;
public class SearchForComponents : EditorWindow
{
[MenuItem("Deadly Soap Tools/Search For Components")]
@phamtrantriem
phamtrantriem / ReplaceMaterials.cs
Created August 16, 2023 09:15
tool in order to change numerous materials for all prefabs and scenes
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.Linq;
using Image = UnityEngine.UI.Image;
using UnityEditor.SceneManagement;
using UnityEngine.SceneManagement;
public class ReplaceMaterials : EditorWindow
{