1

My Unity project has the Animation Rigging Package. As we all know if we write a script where we need to reference some kind of Rig we must use the namespace/using direction for this package. Here is my question. What if I need to reference a Rig in another namespace? The script is now unable to find the using direction for it? Any solutions or ideas on this?

Thanks for your input.

using System.Collections;
using System.Timers;
using OutrunUndeath.Scripts.Characters.Player.Bombs;
using OutrunUndeath.Scripts.Constants;
using OutrunUndeath.Scripts.Handlers.Characters;
using OutrunUndeath.Scripts.Handlers.DamageHandlers;
using OutrunUndeath.Scripts.Managers;
using OutrunUndeath.Scripts.Obstacles;
using OutrunUndeath.Scripts.UiPanles.GamePanels.PlayerHud;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.Animations.Rigging; // not found

namespace OutrunUndeath.Scripts.Characters.Player {  
2
  • Are you sure you have imported Animation Rigging package in your project? Commented Apr 23, 2022 at 6:09
  • Yeah sure. Otherwise, I couldn't set up Rigs/Multi Aim Constraints and so on. Commented Apr 23, 2022 at 10:23

2 Answers 2

1

As always in programming, it was human failure. I forgot to assign the animation Rigging Utils to the right Assembly Definition.

Sign up to request clarification or add additional context in comments.

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
0

try using "using UnityEditor.Animations.Rigging;"

2 Comments

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
Thanks for the Input. But it doesn't work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.