Skip to content

Commit

Permalink
Merge pull request #1616 from gpvigano/fix/update_sdk_buildtargetgroup
Browse files Browse the repository at this point in the history
fix(SDK): let SDKManager work with Unity versions prior to 2017.1
  • Loading branch information
thestonefox committed Nov 15, 2017
2 parents a82195f + 72cc3aa commit c7a696a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Assets/VRTK/Source/Scripts/Utilities/SDK/VRTK_SDKManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ public static VRTK_SDKManager instance
[Tooltip("The list of SDK Setups to choose from.")]
public VRTK_SDKSetup[] setups = new VRTK_SDKSetup[0];
[Tooltip("The list of Build Target Groups to exclude.")]
public BuildTargetGroup[] excludeTargetGroups = new BuildTargetGroup[] { BuildTargetGroup.Switch, BuildTargetGroup.Facebook };
public BuildTargetGroup[] excludeTargetGroups = new BuildTargetGroup[] {
#if UNITY_2017_1_OR_NEWER
BuildTargetGroup.Switch,
BuildTargetGroup.Facebook
#endif
};

/// <summary>
/// The loaded SDK Setup. `null` if no setup is currently loaded.
Expand Down

0 comments on commit c7a696a

Please sign in to comment.