Ah. This can be a classic gotcha and something that isn't obvious at first. Basically, the yellow lines are relative paths to the gameobject property being animated. Read the indent as a "/". When they are yellow (Missing!) you can double click on them and correct the path.
Take your first yellow "Missing!". From the animator game object this looking for "shotgun" (currently disabled). I'm guessing this may be needs to be "Beretta Pistol" ?
The indented ones (Like chamferBox01) are nested under shotgun, so to correct chamferBox01 animation it would need to be something under "Peretta Pistol" (as in Beretta Pistol/...something). Of course, a beretta is nothing like a shotgun and I suspect you'll want different animations for different weapons. I'd consider putting an animator on each weapon and controlling them there. That way, all animation clips are kept with the weapon (No missing! when not there etc).
Update 20/1/2021
I've just replicated the issue myself after moving something around. Heres how I fixed it. I'd moved "Sparkle" and "Sparkle (1)" below "Icon".
![alt text][1]
You need to make sure (in my case) the "Icon" item is in the animation (record and touch a value on it's transform and reset it back if it's not listed). Next, highlight the offending animation property, press F2 (same as double click then click) and adjust the path accordingly...
![alt text][2]
When you now press enter, the object will be found for animation. Of course, the animation may be corrupted if you have been moving anchored values, position, that sort of thing (may not be relative to new parent), but it get's it working again.
[1]: /storage/temp/174477-answers1.jpg
[2]: /storage/temp/174479-answer2.jpg
↧