From fd20d38860a879284c9a8c904806b77eb27f17ec Mon Sep 17 00:00:00 2001 From: Harvey Ball Date: Fri, 13 May 2022 12:36:10 +0100 Subject: [PATCH] fix(DirectionModifier): allow RotationUpTarget to be set by method The RotationUpTarget property can now be set via a method passing the enum index in as the parameter. --- Runtime/Tracking/Modification/DirectionModifier.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Runtime/Tracking/Modification/DirectionModifier.cs b/Runtime/Tracking/Modification/DirectionModifier.cs index 230413c6..0c85202e 100644 --- a/Runtime/Tracking/Modification/DirectionModifier.cs +++ b/Runtime/Tracking/Modification/DirectionModifier.cs @@ -284,6 +284,15 @@ public virtual void ClearPivotOffset() PivotOffset = default; } + /// + /// Sets the . + /// + /// The index of the . + public virtual void SetRotationUpTarget(int index) + { + RotationUpTarget = EnumExtensions.GetByIndex(index); + } + /// /// Processes the current direction modification. ///