You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow the HandModel ModelPrefab property to be set at runtime. (#863)
* This aligns with the functionality of the deprecated
ArticulatedHandController's ModelPrefab, which allowed runtime
setting, that this HandModel is meant to replace.
Copy file name to clipboardExpand all lines: org.mixedrealitytoolkit.input/Controllers/HandModel.cs
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,18 @@ public class HandModel : MonoBehaviour
17
17
{
18
18
#region Properties
19
19
20
-
[SerializeField,Tooltip("The prefab of the MRTK Controller to show that will be automatically instantitated by this behaviour.")]
20
+
[SerializeField,Tooltip("The prefab of the MRTK Controller to show that will be automatically instantiated by this behavior.")]
21
21
privateTransformmodelPrefab;
22
22
23
23
/// <summary>
24
-
/// The prefab of the model to show that will be automatically instantitated by this <see cref="MonoBehaviour"/>.
24
+
/// The prefab of the model to show that will be automatically instantiated by this <see cref="MonoBehaviour"/>.
25
25
/// </summary>
26
26
/// <remarks>Expected to be XRNode.LeftHand or XRNode.RightHand.</remarks>
27
-
publicTransformModelPrefab=>modelPrefab;
27
+
publicTransformModelPrefab
28
+
{
29
+
get=>modelPrefab;
30
+
set=>modelPrefab=value;
31
+
}
28
32
29
33
[SerializeField,Tooltip("The transform that is used as the parent for the model prefab when it is instantiated. Will be set to a new child GameObject if None.")]
0 commit comments