Help with WeakAura Custom Anchor?

I have a dynamic group with a simple custom anchor for testing,

function() return C_NamePlate.GetNamePlateForUnit("target") end

I have also two triggers, one for “player is casting” and one for “target is attackable”, and show an icon at the target whenever one of these is true.

According to documentation on Wiki, “the custom anchor function is updated on trigger update and should return a frame”. Thus, I would expect that the Anchor location is updated when I cast a spell (indeed, this exact example is given in the documentation).

The anchor works in principle. When I click the “set parent to anchor” checkbox in the position settings, WA automatically makes an update of the anchor and it changes to my current target. However, when I select a new target and cast a spell, the anchor is not updated to the new target, the icon stays at whatever target was selected when I clicked the checkbox.

Did I do anything wrong or misunderstood the documentation, or is this a bug? How can I trigger an automatic update of the Anchor position in the aura? Thanks.

Do you de-trigger the aura when it should move to a new frame?

No, how would this work? Or is there some kind of minimum working example for Custom Anchors somewhere?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.