Skip to content

Commit 89a7dd7

Browse files
author
davidkline-ms
committed
add a check for default resources, if not present, display message
1 parent f865921 commit 89a7dd7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Assets/MRTK/Core/Inspectors/Profiles/MixedRealitySceneSystemProfileInspector.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,7 @@ private bool FindDefaultResources()
331331
bool findSucceeded = true;
332332
foreach (string s in defaultResourceGuids)
333333
{
334-
string asset = AssetDatabase.GUIDToAssetPath(s) as string;
335-
if (string.IsNullOrWhiteSpace(asset))
334+
if (AssetDatabase.LoadAssetAtPath<SceneAsset>(AssetDatabase.GUIDToAssetPath(s)) == null)
336335
{
337336
findSucceeded = false;
338337
break;

0 commit comments

Comments
 (0)