Skip to content

Commit 67d4018

Browse files
author
David Kline
committed
add constraintmanager via code when also adding objectmanipulator
1 parent 2e2d1cc commit 67d4018

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/MRTK/SDK/Editor/Migration/ObjectManipulatorMigrationHandler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public bool CanMigrate(GameObject gameObject)
2222
public void Migrate(GameObject gameObject)
2323
{
2424
var manipHandler = gameObject.GetComponent<ManipulationHandler>();
25+
gameObject.AddComponent<ConstraintManager>();
2526
var objManip = gameObject.AddComponent<ObjectManipulator>();
2627

2728
objManip.enabled = manipHandler.enabled;

0 commit comments

Comments
 (0)