public static void PreviewUIPrefab() { GameObject prefab = Selection.activeGameObject; if (prefab != null) { UISystem.InstantiatePrefab(prefab); } }