Search Unity

Find objects/prefabs that are referenced by string? ANY way to see what is?

Discussion in 'Scripting' started by Unlimited_Energy, Sep 7, 2019.

  1. Unlimited_Energy

    Unlimited_Energy

    Joined:
    Jul 10, 2014
    Posts:
    469
    Is there any way to see what objects are referenced by string in Unitys Inspector, similar to when you right click an object in the heriearchy and click -Usages In Scene. This would be for things in code referenced by string such as when doing Resources.Load ("referencesdObject"); or gameObject.Find("ReferencedObject")?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,742
    Alas there is not, but you can always do find-in-files from the editor to look for strings.

    If the string is constructed at runtime (like prefix + number + suffix or something), it's a lot harder to search.
     
    Unlimited_Energy likes this.