[BUG] [EDITOR] Constraint Manager
's button "Go to component" doesn't work for custom TransformConstraint
#838
Labels
Type: Bug
A problem with an existing feature that can be fixed with the next patched release.
Describe the bug
When using a custom script that extends
TransformConstraint
, the "Go to component" button in theConstraint Manager
doesn't work when clicked.To reproduce
Steps to reproduce the behavior:
HandInteractionExample
Constraint Manager
, click on 'Go to component' for the custom constraintItem Custom Constraint not found in window Inspector.
Expected behavior
The component is highlighted just as the built-in components.
Your setup (please complete the following information)
Additional context
$"{ObjectNames.NicifyVariableName(constraintName)}"
to$"{ObjectNames.NicifyVariableName(constraintName)} (Script)"
in ConstraintManagerEditor.cs, the custom component is highlighted but break for MRTK's constraints.[AddComponentMenu("MRTK/Spatial Manipulation/CustomConstraint")]
attribute on the class. It changes the displayed name in inspector and removes the " (Script)" part. But it's better if this feature works out of the box for all scripts.The text was updated successfully, but these errors were encountered: