GetAllAssets() public static method

public static GetAllAssets ( ) : string[]
return string[]
Beispiel #1
0
    void OnGUI()
    {
        GUIStyle style = new GUIStyle();

        style.wordWrap         = true;
        style.normal.textColor = Color.white;

        GUILayout.BeginVertical();
        if (GUILayout.Button("log dupes"))
        {
            compareAssetList(UsedAssets.GetAllAssets());
            m_Init = true;
        }
        if (m_Init && !m_Found)
        {
            style.normal.textColor = Color.green;
            GUILayout.Label("\nNo dumplicates found :-D\n\n", style);
            style.normal.textColor = Color.white;
        }
        else if (m_Init && m_Found)
        {
            style.normal.textColor = Color.red;
            string s = "";
            foreach (string t in m_Strings)

            {
                s = s + t + "\n";
            }
            GUILayout.Label("\nduplicates found !!!\n\n" + s, style);
            style.normal.textColor = Color.white;
        }
        GUILayout.EndVertical();
    }
Beispiel #2
0
    private void loadEditorLog()
    {
        UsedAssets.GetLists(ref usedAssets, ref includedDependencies);

        if (usedAssets.Count == 0)
        {
            needToBuild = true;
        }
        else
        {
            compareAssetList(UsedAssets.GetAllAssets());
            groupEnabled = true;
            needToBuild  = false;
        }
    }