How to align the top-left corner of Item Action Panel to the top-right corner of item slot?

Justus

Member
We could set Item Action Panel to tooltip mode so that they could be show as a dynamic floating panel which is always locate aside item slot.
And we could also use y-offset to tune the vertical position of item action panel.
But I have encounter a problem in the case described below

- different item has different amount of item actions
- an scroll could be `Use/Move/Drop`
- a Relic could be `Use/Equip/Move/Drop`
- a task item could be `Move/Drop`
- the height of these three kind of panels are different, so I could not use a single value of y-offset to get my purpose( align top-left)

How to align my Item Action Panel in this case?
 
I got how to implement this, record the steps here.

1) the size of Item Action Panel is not important, but you need make sure the Pivot of it is (0,1)
1653720080237.png
2) if you enable `Set Anchor Position`, this will override the settings in step 1), so make sure you also set (0,1) here
1653720310031.png
3) tuning your content rect and make transform and anchor, make sure it's top-left corner stick to the top-left of your Panel object.
1653720486505.png
 
Top