Skip to content

Commit 326850e

Browse files
removed build warnings
1 parent 2631b94 commit 326850e

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

Assets/MixedRealityToolkit/_Core/Definitions/MixedRealityComponentConfiguration.cs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,31 @@ namespace Microsoft.MixedReality.Toolkit.Core.Definitions
1515
[Serializable]
1616
public struct MixedRealityComponentConfiguration
1717
{
18+
/// <summary>
19+
/// Constructor.
20+
/// </summary>
21+
/// <param name="componentType">The concrete type for the system, feature or manager.</param>
22+
/// <param name="componentName">The simple, human readable name for the system, feature, or manager.</param>
23+
/// <param name="priority">The priority this system, feature, or manager will be initialized in.</param>
24+
/// <param name="runtimePlatform">The runtime platform(s) to run this system, feature, or manager on.</param>
25+
/// <param name="configurationProfile">The configuration profile for the system, feature, or manager.</param>
26+
/// <param name="editorPlatform">The editor platform(s) to run this system, feature, or manager on.</param>
27+
public MixedRealityComponentConfiguration(SystemType componentType, string componentName, uint priority, RuntimePlatform runtimePlatform, ScriptableObject configurationProfile
28+
#if UNITY_EDITOR
29+
, UnityEditor.BuildTarget editorPlatform
30+
#endif
31+
)
32+
{
33+
this.componentType = componentType;
34+
this.componentName = componentName;
35+
this.priority = priority;
36+
this.runtimePlatform = runtimePlatform;
37+
this.configurationProfile = configurationProfile;
38+
#if UNITY_EDITOR
39+
this.editorPlatform = editorPlatform;
40+
#endif
41+
}
42+
1843
[SerializeField]
1944
[Implements(typeof(IMixedRealityComponent), TypeGrouping.ByNamespaceFlat)]
2045
private SystemType componentType;

Assets/MixedRealityToolkit/_Core/Definitions/MixedRealityConfigurationProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public float TeleportDuration
216216

217217
[SerializeField]
218218
[Tooltip("All the additional non-required systems, features, and managers registered with the Mixed Reality Manager.")]
219-
private MixedRealityRegisteredComponentsProfile registeredComponentsProfile;
219+
private MixedRealityRegisteredComponentsProfile registeredComponentsProfile = null;
220220

221221
/// <summary>
222222
/// All the additional non-required systems, features, and managers registered with the Mixed Reality Manager.

0 commit comments

Comments
 (0)