Skip to content

Commit 676967d

Browse files
committed
Adding support for the .NET scripting background
Placed entirely behind a UNITY_EDITOR check because this particular code is only used from the editor. The UWP .NET libraries don't have the same support for Types class functionality, so rather than trying to update this to support the UWP version of types, we can drop the code in runtime environments.
1 parent a5319ae commit 676967d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Assets/MixedRealityToolkit/Attributes/MixedRealityExtensionServiceAttribute.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,17 @@ public MixedRealityExtensionServiceAttribute(
7171
PackageFolder = packageFolder;
7272
}
7373

74+
#if UNITY_EDITOR
7475
/// <summary>
7576
/// Convenience function for retrieving the attribute given a certain class type.
7677
/// </summary>
78+
/// <remarks>
79+
/// This function is only available in a UnityEditor context.
80+
/// </remarks>
7781
public static MixedRealityExtensionServiceAttribute Find(Type type)
7882
{
7983
return type.GetCustomAttributes(typeof(MixedRealityExtensionServiceAttribute), true).FirstOrDefault() as MixedRealityExtensionServiceAttribute;
8084
}
85+
#endif // UNITY_EDITOR
8186
}
8287
}

0 commit comments

Comments
 (0)