2021.830.0
Thanks for following along! This is a tagged release (2021.830.0).
Breaking Changes
ITooltip.SetContent
no longer require returning bool
value
Until now, the method of reusing tooltip instances was problematic (two tooltips handling the same data type could not exist). Instance sharing is now based on the constructed tooltip's Type
, rather than the data type.
An example of how you should update your code follows.
Before:
public override bool SetContent(object content)
{
if (!(content is CustomContent custom))
return false;
text.Text = content.ToString(); // whatever you need to do here.
return true;
}
After:
public override void SetContent(object content)
{
text.Text = content.ToString(); // whatever you need to do here.
}