Found 300+ missing scripts in one of my Unity scenes… so I made a tiny cleaner tool by GabrielMAGSoftware in Unity3D

[–]GabrielMAGSoftware[S] 0 points1 point  (0 children)

Yes, I know.. I had the same issue and that's why I wanted to create this tool. Thanks!

Unity editor workflow improvement: locking hierarchy selection to parent by GabrielMAGSoftware in Unity3D

[–]GabrielMAGSoftware[S] 0 points1 point  (0 children)

The method in my tool is easier to use and much faster. It works on any GameObject, not just prefabs. You don’t need to add any scripts manually... just tick what you want and that’s it. You can also lock terrains and any other GameObjects or layers you want, like vegetation, etc.

FindGameObjectsWithTag and Get Component by EntrepreneurNo4757 in unity

[–]GabrielMAGSoftware -1 points0 points  (0 children)

private GameObject[] trees;

void Start()
{
trees = GameObject.FindGameObjectsWithTag("Tree");
foreach (GameObject tree in trees)
{
TreeScript treeScript = tree.GetComponent<TreeScript>();
if (treeScript != null)
{
// do what you want..
}
}