Skip to content

Instantly share code, notes, and snippets.

Uch UCh

Block or report user

Report or block UCh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View FindMissingReferencesInProject.cs
[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>();
UCh / FPSCounter.cs
Created Jul 7, 2016
Unity FPS counter for UI text component with minimal memory allocation
View FPSCounter.cs
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;
You can’t perform that action at this time.