Ejemplo n.º 1
0
		public static void PrintDependencies(GameObject targetGO)
		{
#if UNITY_EDITOR
			Debug.Log("Print Dependcies: target: " + targetGO.name);
			UnityEngine.Object[] depends = HEU_EditorUtility.CollectDependencies(targetGO);
			foreach (UnityEngine.Object obj in depends)
			{
				Debug.LogFormat("Dependent: name={0}, type={1}, path={2}, persist={3}, native={4}", obj.name, obj.GetType().ToString(), AssetDatabase.GetAssetOrScenePath(obj), EditorUtility.IsPersistent(obj),
					AssetDatabase.IsNativeAsset(obj));
			}
#endif
		}