This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[MenuItem("Edit/Search missing references in prefabs (Full project)", false, 50)] | |
public static void FindMissingReferencesInProject() | |
{ | |
UnityEngine.Debug.Log("Starting search for missing components in project prefabs"); | |
var paths = AssetDatabase.FindAssets("t:prefab").ToList().Select(guid => AssetDatabase.GUIDToAssetPath(guid)); | |
foreach (var path in paths) | |
{ | |
var go = AssetDatabase.LoadAssetAtPath<GameObject>(path); | |
var components = go.GetComponents<Component>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class FPSCounter : MonoBehaviour { | |
private static readonly string FPS = " FPS "; | |
private static readonly int STRING_SIZE = FPS.Length + 2; | |
private Text textField; |